Closed
Description
print(pd.Series([1.0], dtype="float16"))
# RuntimeWarning: overflow encountered in cast np.array([1.0], dtype="float16") > 1e6
# 0 1.0
# dtype: float16
This occurs here:
pandas/pandas/io/formats/format.py
Line 1446 in bc34e24
Perhaps we just set has_large_values
to be false for float16?