Загрузка...

A guide to binning data with python (numeric and categorical)

In this video, we discuss binning data with python using some nice python pandas functionality.

We start by binning categorical data with python by using the pd.getdummies function which facilitates one-hot encoding and the pd.Categorical function which allows a ranked categorical bin that can be easily treated as a numeric.

To assist with the binning of numerical data in python we used the pd.cut function and the pd.qcut function which converts numeric data to labeled categories in order to decrease dimensionality.

The notebook used for this video is available from github from the following link https://github.com/SuperDataWorld/Python/blob/main/Binning.ipynb

Видео A guide to binning data with python (numeric and categorical) канала Analytics with Adam
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять