Skip to content

Commit be7e98b

Browse files
fbourgeymroeschke
andauthored
Update pandas/core/generic.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent a06f9c7 commit be7e98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7490,7 +7490,7 @@ def replace(
74907490
if is_dict_like(value): # {'A' : NA} -> {'A' : 0}
74917491
if isinstance(self, ABCSeries):
74927492
raise ValueError(
7493-
"Series.replace cannot use dict-like to_replace dict-like."
7493+
"to_replace and value cannot be dict-like for Series.replace"
74947494
)
74957495
# Note: Checking below for `in foo.keys()` instead of
74967496
# `in foo` is needed for when we have a Series and not dict

0 commit comments

Comments
 (0)