-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
New issue
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
Replace partial matches behavior #5143
Labels
Milestone
Comments
ok yep ... should possibly add a 'search' or 'match' parameter or something like |
right now it does search |
in this case instead of using Series(weights)[answer] this is probably faster for larger series as well |
really trivial fix after deciding on the API |
he wants an exact match....I thought you do that UNLESS you see a regex? |
hm yes should be that ... let me look |
yep just needed to accept tuples |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into some unexpected behavior with
replace
today.I want to replace the answer with a numeric value according to the dictionary
weights
It looks like replace matches on the first part,
Agree
, orDisagree
and doesn't make it through the dict to theStrongly
s. Am I just being a noob with how regexes work, or is this a bug?The text was updated successfully, but these errors were encountered: