We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
# NG s = pd.Series([1, 2, 3]) s.replace(2, True) #0 1 #1 1 #2 3 # dtype: int64
If target has object dtype, it works.
object
s = pd.Series(['x', 2, 3]) s.replace(2, True) #0 x #1 True #2 3 # dtype: object
The text was updated successfully, but these errors were encountered:
This is numpy casting at work. If you can fix in a performant way, then ok.
Sorry, something went wrong.
Looks fixed on master. Could use a regression test.
In [26]: pd.__version__ Out[26]: '0.26.0.dev0+490.g9cfb8b55b' In [27]: s = pd.Series([1, 2, 3]) ...: s.replace(2, True) Out[27]: 0 1 1 True 2 3 dtype: object
Successfully merging a pull request may close this issue.
If target has
object
dtype, it works.The text was updated successfully, but these errors were encountered: