Closed
Description
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
In [1]: import pandas as pd
In [2]: ser = pd.Series(("google", "wikimedia", "wikipedia", "wikitravel"))
In [3]: list(iter(ser.str)) # hangs
Issue Description
#49268 removed StringMethods.__iter__
, but user can still iterate over Series(...).str
which indefinitely hangs
Expected Behavior
Raises TypeError
Installed Versions
Replace this line with the output of pd.show_versions()