pub struct PandasJsonDouble { /* private fields */ }Expand description
A float’s text as pandas’ to_json writes it (its vendored ujson
encoder) at precision decimals (double_precision, 0..=15), built on
the stack: above 1e16 or below 1e-15 C’s %.{p}g (‘1.23456789e+20’);
anything else fixed point - the fraction scaled by 10^p, truncated and
then rounded (a half up when the digit is odd or zero), carried into the
whole part, its trailing zeros trimmed (‘2.0’ keeps one); not finite,
null. serde_json’s shortest round trip wrote 0.30000000000000004 for
pandas’ 0.3 and 1e-12 for its 0.0 (br-frankenpandas-6udgl).
Implementations§
Source§impl PandasJsonDouble
impl PandasJsonDouble
Trait Implementations§
Source§impl Clone for PandasJsonDouble
impl Clone for PandasJsonDouble
impl Copy for PandasJsonDouble
Auto Trait Implementations§
impl Freeze for PandasJsonDouble
impl RefUnwindSafe for PandasJsonDouble
impl Send for PandasJsonDouble
impl Sync for PandasJsonDouble
impl Unpin for PandasJsonDouble
impl UnsafeUnpin for PandasJsonDouble
impl UnwindSafe for PandasJsonDouble
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more