Pandasで小数点以下の桁を保持したままdataframeに読み込むには? csvdataframe gis_points_data.csv index_gis,fX,fY 0,139.75192,35.70077 1,139.77791,35.6997 2,139.7467,35.70089 3,139.75908,35.69649 4,139.7747,35.69283 5,139.74051,35.68449 fXY fX140fY35.7 import pandas as pd import numpy as np # df0=pd.read_csv("gis_points_data.csv") # df1=pd.read_csv("gis_points_data.csv", dtype={'fX':'float64','fY':'float64'}) # df2=pd.read_csv("gis_points_data.csv", dtype={'fX':'object','fY':'object'}) df2['fX']=df2['fX'].astype(float) df2['fY']=df2['fY'].astype(float)
`read_csv`3
print(df0['fX'] - 140)
`Pandas` `display.float_format``iPython``%precision`
xcX3v84RxoQ-4GxG32940ukFUIEgYdPy
a768e2bc154e2f2af102184114176e6e
Stop