Skip to content

Commit a9eb9f2

Browse files
DOC: Corrected typo in warning on coerce (#56699)
* Corrected typo in warning on coerce * Correct typo in v2.1.0.rst as well
1 parent 2542674 commit a9eb9f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v2.1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ In a future version, these will raise an error and you should cast to a common d
432432
433433
In [3]: ser[0] = 'not an int64'
434434
FutureWarning:
435-
Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas.
435+
Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas.
436436
Value 'not an int64' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
437437
438438
In [4]: ser

pandas/core/internals/blocks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def coerce_to_target_dtype(self, other, warn_on_upcast: bool = False) -> Block:
512512
if warn_on_upcast:
513513
warnings.warn(
514514
f"Setting an item of incompatible dtype is deprecated "
515-
"and will raise in a future error of pandas. "
515+
"and will raise an error in a future version of pandas. "
516516
f"Value '{other}' has dtype incompatible with {self.values.dtype}, "
517517
"please explicitly cast to a compatible dtype first.",
518518
FutureWarning,

0 commit comments

Comments
 (0)