Using pandas 'categorical' dtype with sklearn

Is there sklearn support for using the Panda Categorical data type directly in fit models? From what I saw, sklearn does not support this data type, which is unsuccessful because the categorical data type encodes categorical data and contains a data mapping scheme. In addition, categorical coding is a pure data processing / processing problem, so it seems more natural that Pandas will work with it.

Note

I understand that there are several coding methods for categorical variables in Pandas and sklearn - this is not what I am asking.

+4
source share
1 answer

-:

, , , : 1. can/will sklearn pandas 2. can/will sklearn pandas.

  • , . . " " scikit-learn, , .

  • . , , pandas c-, . , . , .

+4

All Articles