pandas.errors.PossiblePrecisionLoss¶
- exception pandas.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 is converted 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...