Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.errors.PossiblePrecisionLoss#

exceptionpandas.errors.PossiblePrecisionLoss[source]#

Warning raised by to_stata on a column with a value outside or equal to int64.

When the column value is outside or equal to the int64 value the column isconverted to a float64 dtype.

Examples

>>>df=pd.DataFrame({"s":pd.Series([1,2**53],dtype=np.int64)})>>>df.to_stata('test')...# PossiblePrecisionLoss: Column converted from int64 to float64...

[8]ページ先頭

©2009-2025 Movatter.jp