You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The stubs for pandas_stubs.core.strings.StringMethods.rsplit includes a regex: bool parameter. The function pandas.Series.str.rsplit contains no such parameter.
To Reproduce
ser = pd.Series(["foo.bar.baz", "qux.foobar"])
ser.str.rsplit(".", regex=False)
I'm using pyright, which does not raise any error, even though it should since actually running the code results in TypeError: StringMethods.rsplit() got an unexpected keyword argument 'regex'. Please complete the following information:
OS: MacOS
OS Version: Sonoma 14.6.1
Python 3.12.1
pyright 1.1.389
pandas-stubs 2.2.3.241009
Additional context
The confusion seems to stem from the fact that the parallel method pandas.Series.str.split does include a regex: bool parameter.
The text was updated successfully, but these errors were encountered:
Describe the bug
The stubs for
pandas_stubs.core.strings.StringMethods.rsplit
includes aregex: bool
parameter. The functionpandas.Series.str.rsplit
contains no such parameter.To Reproduce
I'm using
pyright
, which does not raise any error, even though it should since actually running the code results inTypeError: StringMethods.rsplit() got an unexpected keyword argument 'regex'
.Please complete the following information:
Additional context
The confusion seems to stem from the fact that the parallel method
pandas.Series.str.split
does include aregex: bool
parameter.The text was updated successfully, but these errors were encountered: