January 2020
Beginner to intermediate
372 pages
10h
English
You can also perform one-hot encoding of the five most popular categories using scikit-learn's OneHotEncoder() function. To do this, you need to pass a list of lists or an array of values to the categories argument where each list or each row of the array holds the top five categories expected in the relevant variable. You can find more details on the scikit-learn website at https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html.
Read now
Unlock full access