-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Add replace
method to Index
#32542
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
Closed
Changes from 46 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
22d53cc
initial coommit & test
oguzhanogreden 47a14fa
Initial commit & test
oguzhanogreden fbbc745
Third case, not implementing
oguzhanogreden 5cd5d65
replace values list with scalar
oguzhanogreden 734c750
backfill case
oguzhanogreden becbc09
Add replace_single and regex cases
oguzhanogreden ae20f64
Not implementing inplace in light of #16529.
oguzhanogreden 4fa5f11
Clean unnecessary errors
oguzhanogreden 4d3ec7e
remove unused inplace parameters/arguments
oguzhanogreden 1737372
remove filter from _replace_single() method()
oguzhanogreden 554ce48
Remove unnecessary comment
oguzhanogreden 09f3a15
Add documentation to replace_list
oguzhanogreden f81efc1
Fix import
oguzhanogreden e1711d8
Address minor comments - i
oguzhanogreden 1ebc201
Revert moving imports to import section
oguzhanogreden f93adb8
Minor comments and parametrized tests
oguzhanogreden 0475c86
Raise NotImplemented for Categorical- and MultiIndex
oguzhanogreden 70896a7
commit test code
oguzhanogreden 46c4712
reuse code & add tests
oguzhanogreden 786208b
Again, add type ignore
oguzhanogreden 6dc5f8b
Move type ignore to correct line...
oguzhanogreden 1512edf
add docstrings
oguzhanogreden 241721a
Merge remote-tracking branch 'upstream/master' into index-replace-bck
oguzhanogreden be1d0ac
I had removed defaults by mistake, added them again
oguzhanogreden aeb2759
Add defaults to multiindex as well
oguzhanogreden db58359
Update whatsnew
oguzhanogreden a6e01eb
Merge remote-tracking branch 'upstream/master' into index-replace-bck
oguzhanogreden 0970112
Move shared docs to common.shared_docs
oguzhanogreden 1e2efc3
Merge remote-tracking branch 'upstream/master' into index-replace-bck
oguzhanogreden 7bdc7a8
Cache errors not caught by checks
oguzhanogreden 46d5c5a
Merge remote-tracking branch 'upstream/master' into index-replace-bck
oguzhanogreden cac074f
Merge remote-tracking branch 'upstream/master' into index-replace-bck
oguzhanogreden ff27ce4
Merge branch 'master' into index-replace-bck
oguzhanogreden e315717
'public' shared_doc_kwargs
oguzhanogreden 7406775
revert 'public' shared_doc_kwargs adjust validation
oguzhanogreden 7b4a2b0
Move whatsnes
oguzhanogreden 5f86494
Add replace method for categorical index
oguzhanogreden 61b8ac5
Revert changes and a better NotImplementedError message
oguzhanogreden 1bb05f9
Grammar fix in whatsnew
oguzhanogreden c955338
fix formatting
oguzhanogreden 01ac22f
Revert unintended formatting changes in core/shared_docs.py
oguzhanogreden e6a4e8d
test case for change identified by the doctest & formatting by black
oguzhanogreden 7d7e5ca
Remove stale documentation.
oguzhanogreden 35d493a
Merge remote-tracking branch 'upstream/master' into index-replace-bck
oguzhanogreden b73c774
Merge branch 'master' into index-replace
oguzhanogreden 0801abf
Merge branch 'master' of github.com:pandas-dev/pandas into index-repl…
oguzhanogreden 800aef7
Merge branch 'master' into index-replace
oguzhanogreden eb784b5
Address comments and add tests
oguzhanogreden a23faaf
Merge branch 'index-replace' of https://github.com/oguzhanogreden/pan…
oguzhanogreden 2a778bb
C408
oguzhanogreden d4ade69
Merge branch 'master' of github.com:pandas-dev/pandas into index-repl…
oguzhanogreden 7fddde6
revert validate_unwanted_patterns
oguzhanogreden f4fa3d6
Move what's new and tidy up @docs
oguzhanogreden 62bd25e
Merge branch 'master' into index-replace
oguzhanogreden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.