Series.str should only be defined for strings, not all Series with dtype=object #9343
Labels
Admin
Administrative tasks related to the pandas project
Dtype Conversions
Unexpected or buggy dtype conversions
Strings
String extension data type and string data
#9322 will make
Series.str
raise an exception if it is accessed on Series instances with non-object dtype. In principle, the exception should really be raised for any non-strictly string-like data, but that's not practical until pandas has a true string dtype to use (currently we abusenp.object_
for this purpose).The text was updated successfully, but these errors were encountered: