Skip to content

ImportError: cannot import name 'tosequence' from 'sklearn.utils' with sklearn >=1.7.0 #267

@johncant

Description

@johncant

Importing sklearn_pandas.dataframe_mapper with sklearn >=1.7.0 installed gives the following error:

ImportError: cannot import name 'tosequence' from 'sklearn.utils'

sklearn deprecated tosequence in v1.5 and removed it in v1.70. It seems easy to fix though - sklearn appears to have used list in its place.

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