There is a number of questions about suppressing scientific notation in Pandas in general
- Format / Suppress Scientific Notation from Python Pandas Aggregation Results
- Suppressing scientific notation in pandas?
- How do I print entire number in Python from describe() function?
However, none of them seems to apply to the to_markdown
function. For example:
import pandas as pd
df = pd.DataFrame({'val': 3e10}, index=[0]) # print(df) gives 3.000000e+10
pd.set_option('float_format', '{:f}'.format) # print(df) gives 30000000000.000000
However, df.to_markdown()
still yields
| | val |
|---:|------:|
| 0 | 3e+10 |
How can I disable the scientific notation in to_markdown()
?