- API reference
- Testing
- pandas.error...
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...
On this page