Skip to content

Pandas DataFrame Categories supported by OneHotEncoder - #13351

Closed
maikia wants to merge 3 commits into
scikit-learn:mainfrom
maikia:categ
Closed

maikia wants to merge 3 commits into
scikit-learn:mainfrom
maikia:categ

Conversation

@maikia

@maikia maikia commented Mar 1, 2019 •

Copy link
Copy Markdown
Contributor

If one of the features is Pandas Categorical it is supported by OneHotEncoder and the categories will be kept as set

TODO:

  • Validate the dtype between fit and transform (for now only allow exactly the same dtype)
  • Deprecation path:
    • By default still do it the old way, but provide a way to opt in to the new behaviour
  • Test that the order of the categories is used

maikia added 2 commits March 1, 2019 16:40
…ransform. In case of categorical check if corresponding categories are the same
… previous commit), only checking categories remains
@amueller

amueller commented Aug 6, 2019

Copy link
Copy Markdown
Member

Are you still working on this? Related to #12086 and #12147 and #13253

@glemaitre

Copy link
Copy Markdown
Member

@maikia I'm closing this PR since the code of the encoders changed quite a lot. We will still consider the issue and come if a better handling of the CategoricalDType

@glemaitre glemaitre closed this Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants