Skip to content

DataFrameMapper with df_out should preserve categorical data #81

Open
@mratsim

Description

@mratsim

DataFrameMapper transformation removes the "category" dtype from dataframe columns

Categorical status can be checked with:
hasattr(df['categorical_column'], 'cat')

Some classifiers like LightGBM can auto detect categorical data from dataframes and handle them very efficiently without OneHotEncoding.

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