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
__getitem__ is used for iterators when __iter__ is not available. One solution would be to implement __iter__ and raise a TypeError, but this isn't simple since it touches two related issues
28277 the resolved issue which caused this one. __iter__ was removed as a result
Uh oh!
There was an error while loading. Please reload this page.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
#49268 removed
StringMethods.__iter__
, but user can still iterate overSeries(...).str
which indefinitely hangsExpected Behavior
Raises TypeError
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: