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.