Skip to content

AttributeError: module 'pandas.compat' has no attribute 'string_types' #373

@badiku

Description

@badiku

today I got this error:
AttributeError: module 'pandas.compat' has no attribute 'string_types'

and the code is here:

if (isinstance(c, pd.compat.string_types) and pd.compat.isidentifier(c)))

the problem is , there's no pd.compat.string_types now.

pandas removed it at Mar 29, 2019, see here:
pandas-dev/pandas#25903

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions