Загрузка страницы

Pandas Get Dummies | pd.get_dummies()

https://dataindependent.com/pandas/pandas-get-dummies

When you're doing machine learning you'll work with algorithms that cannot process categorical variables. In this case, you need to turn your column of labels (Ex: ['cat', 'dog', 'bird', 'cat']) into separate columns of 0s and 1s. This is called getting dummies pandas columns.

Pandas pd.get_dummies() will turn your categorical column (column of labels) into indicator columns (columns of 0s and 1s).

This function is heavily used within machine learning algorithms. For instance, random forrest doesn't do great with columns that have labels. It's best to turn these into dummy indicator columns.

Видео Pandas Get Dummies | pd.get_dummies() канала Data Independent
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
8 августа 2020 г. 23:08:52
00:04:23
Яндекс.Метрика