Skip to content

Calling transform on a non-fitted DataFrameMapper raises TypeError #192

@FlorisHoogenboom

Description

@FlorisHoogenboom

When calling transform on a DataFrameMapper that hasn't been fitted yet, the TypeError below is raised:

TypeError: 'NoneType' object is not iterable

It would be nice to have a more meaningful error since this is hard to debug. Ideally, we would check whether we are able to call transform on all underlying transformers and only raise of one of these is not successful. This may be difficult to implement since there is generic way that I know of to determine whether a Scikit-learn transformer is fitted.

Anyways, I would be happy to submit a PR for a more meaningful error message!

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