Skip to content

ENH: Updating the replace method in accessor.py and adding unit tests for … #51913

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

Closed
wants to merge 4 commits into from
Closed

ENH: Updating the replace method in accessor.py and adding unit tests for … #51913

wants to merge 4 commits into from

Conversation

rmhowe425
Copy link
Contributor

…issue #51748

  • Updated the replace method in accessor.py to include a dictionary as as an optional parameter, where each key:value pair represents the string to be replaced (key), with the updated string (value).

  • Added new unit tests in tests/strings/test_find_replace.py to ensure that the new functionality does not break existing functionality, and that the new functionality works as intended.

@rmhowe425 rmhowe425 closed this Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Allow dictionaries to be passed to pandas.Series.str.replace
1 participant