We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5bd33b commit d7a6d4eCopy full SHA for d7a6d4e
pandas/core/dtypes/astype.py
@@ -144,9 +144,9 @@ def _astype_float_to_int_nansafe(
144
"""
145
if not np.isfinite(values).all():
146
raise IntCastingNaNError(
147
- """Cannot convert non-finite values (NA or inf) to integer.
148
- Replace or remove non-finite values or cast to an integer type
149
- that supports these values (e.g. 'Int64')"""
+ "Cannot convert non-finite values (NA or inf) to integer."
+ "Replace or remove non-finite values or cast to an integer type"
+ "that supports these values (e.g. 'Int64')"
150
)
151
if dtype.kind == "u":
152
# GH#45151
0 commit comments