Hi,
is it possible to disable rounding when displaying Dataframe values ?
For instance, I spent a few minutes trying to figure out why I got the year 2001.0 (Float) in my dataframe where I should have read 2000.9999.
Hi,
is it possible to disable rounding when displaying Dataframe values ?
For instance, I spent a few minutes trying to figure out why I got the year 2001.0 (Float) in my dataframe where I should have read 2000.9999.
I donβt think there is a way to do this by default. But you can use show
to print with more digits
julia> df = DataFrame(x = rand(5) .* 1e-5 .+ 2000.9999)
5Γ1 DataFrame
Row β x
β Float64
ββββββΌβββββββββ
1 β 2001.0
2 β 2001.0
3 β 2001.0
4 β 2001.0
5 β 2001.0
julia> show(df; formatters = PrettyTables.ft_printf("%0.10f"))
5Γ1 DataFrame
Row β x
β Float64
ββββββΌβββββββββββββββββ
1 β 2000.9999090513
2 β 2000.9999050430
3 β 2000.9999021228
4 β 2000.9999093119
5 β 2000.9999020573