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.