Skip to content
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

Change signature of StringMethods.rsplit to match pandas #1056

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

kroche98
Copy link
Contributor

This removes the nonexistent regex: bool parameter from the StringMethods.rsplit function.

I haven't added any tests, as it doesn't seem the parameter types of any string accessor methods are tested.

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Nov 25, 2024

I haven't added any tests, as it doesn't seem the parameter types of any string accessor methods are tested.

We do have tests for str.rsplit() in test_series.py. Having said that, adding a test for an incorrect parameter isn't really needed.

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @kroche98

@Dr-Irv Dr-Irv merged commit c5eecf8 into pandas-dev:main Nov 25, 2024
10 checks passed
loicdiridollou pushed a commit to loicdiridollou/pandas-stubs that referenced this pull request Nov 27, 2024
Dr-Irv added a commit that referenced this pull request Nov 27, 2024
* GH1051 Drop astype tests for Mac arm for float128 and complex256

* Fix

* Fix

* Test fix

* Move to macos-latest

* Update test.yml

* GH1051 Lock in tables version to 3.10.1

* GH1049 Deprecate Index and Grouper methods for 2.0 migration (#1050)

* GH1049 Deprecate Index and Grouper methods for migration to 2.0

* GH1049 Deprecate use_nullable_dtypes in read_parquet

* Change signature of StringMethods.rsplit to match pandas (#1056)

* GH1053 @ for DataFrame, eval in place for DataFrame, test migrations (#1054)

* GH1053 @ for DataFrame, eval in place for DataFrame, test migrations

* Formatting and spelling

* GH1053 PR Feedback

* GH1053 Formatting

* GH1043 Update _typing.pyi: add "cross" option to JoinHow (#1044)

* Update _typing.pyi: add "cross" option to JoinHow

* Removed "cross" option from JoinHow and added it back to MergeHow

* Replaced JoinHow with MergeHow in frame.join

* Added a test for join "how"

* Update test_frame.py: used check(assert_type pattern in unit test

* Update test_frame.py

Fix formatting

* Version 2.2.3.241126

---------

Co-authored-by: kroche98 <kroche.md@gmail.com>
Co-authored-by: brzegorzTesco <Grzegorz.Bogdal@Tesco.com>
Co-authored-by: Irv Lustig <irv@princeton.com>
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.

Incorrect signature for pandas.Series.str.rsplit
2 participants