๋ฐ์ํ
import pandas as pd
df = pd.DataFrame({'a':152.0054343543,
'b':0.0070054423423,
'c':-7.54543543E-07,
'd':2.50282237391414E-11}, index=[0])
df.to_json(orient='records', double_precision=15)
- to_json ์ด์ฉ
- ์์ซ์ ์๋ฆฌ์ ๊ธฐ๋ณธ 10์๋ฆฌ๋ผ์ 15๋ก ์ค์ ํจ
date_format
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_json.html
๋ฐ์ํ
'Python > Pandas' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Python] Pandas - Dataframe, NaN ๊ฐ ์ฒ๋ฆฌ (0) | 2020.08.12 |
---|---|
[Python] Pandas - Dataframe, NaN ๊ฐฏ์ (0) | 2020.08.12 |
[Python] Pandas - Dataframe ์ ์ฒด ํ, ์ด ๋ณด๊ธฐ ์ค์ (0) | 2020.06.02 |
[Python] Pandas - dataframe์ ํน์ ๊ฐ์ NaN์ผ๋ก ๋ณ๊ฒฝ (0) | 2020.06.02 |
[Python] Pandas - Dataframe ์ปฌ๋ผ๋ช ์กฐํ (0) | 2020.03.09 |