Issue
I have the sample:
import pandas as pd
data = [[1706121660, 1.152229705572702e-06, 1.074741466619169e-06, 1.074741466619169e-06, 1.074741466619169e-06, 0.28], [1706121600, 1.125333298543622e-06, 1.157527924446797e-06, 1.088866832550798e-06, 1.152229705572702e-06, 4.681397952]]
df = pd.DataFrame(data)
df
I see this result:
0 1 2 3 4 5
0 1706121660 0.000001 0.000001 0.000001 0.000001 0.280000
1 1706121600 0.000001 0.000001 0.000001 0.000001 4.681398
How can I see the real values without rounding in the result? Thank you!
Solution
You can increase precision via
df = pd.DataFrame(data)
pd.set_option('display.float_format', '{:.20f}'.format)
Answered By - Cem Koçak
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.