Skip to content

Series.str should only be defined for strings, not all Series with dtype=object #9343

Closed
@shoyer

Description

@shoyer

#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 abuse np.object_ for this purpose).

Metadata

Metadata

Assignees

No one assigned

    Labels

    AdminAdministrative tasks related to the pandas projectDtype ConversionsUnexpected or buggy dtype conversionsStringsString extension data type and string data

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions