Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
DataFrame.replace with dict behaves inconsistently for integers and strings #20656
DataFrame.replace does not behave consistently when replacing integers vs replacing strings.
This yields the result:
However, when using the same commands for string values
But it should give