Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

How do I create dummy variables in pandas?

Автор: Data School

Загружено: 2016-07-12

Просмотров: 87013

Описание:

If you want to include a categorical feature in your machine learning model, one common solution is to create dummy variables. In this video, I'll demonstrate three different ways you can create dummy variables from your existing DataFrame columns. I'll also show you a trick for simplifying your code that was introduced in pandas 0.18.

SUBSCRIBE to learn data science with Python:
https://www.youtube.com/dataschool?su...

JOIN the "Data School Insiders" community and receive exclusive rewards:
  / dataschool  

== RESOURCES ==
GitHub repository for the series: https://github.com/justmarkham/pandas...
"map" documentation: http://pandas.pydata.org/pandas-docs/...
"get_dummies" documentation: http://pandas.pydata.org/pandas-docs/...
"iloc" documentation: http://pandas.pydata.org/pandas-docs/...
"concat" documentation: http://pandas.pydata.org/pandas-docs/...

== LET'S CONNECT! ==
Newsletter: https://www.dataschool.io/subscribe/
Twitter:   / justmarkham  
Facebook:   / datascienceschool  
LinkedIn:   / justmarkham  

How do I create dummy variables in pandas?

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#5543 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "yCgJGsg0Xa4" ["related_video_title"]=> string(45) "How do I work with dates and times in pandas?" ["posted_time"]=> string(19) "8 лет назад" ["channelName"]=> string(11) "Data School" } [1]=> object(stdClass)#5516 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "xvpNA7bC8cs" ["related_video_title"]=> string(66) "How do I select multiple rows and columns from a pandas DataFrame?" ["posted_time"]=> string(19) "9 лет назад" ["channelName"]=> string(11) "Data School" } [2]=> object(stdClass)#5541 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "tcRGa2soc-c" ["related_video_title"]=> string(38) "How do I use the MultiIndex in pandas?" ["posted_time"]=> string(19) "6 лет назад" ["channelName"]=> string(11) "Data School" } [3]=> object(stdClass)#5548 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "wDYDYGyN_cw" ["related_video_title"]=> string(53) "How do I make my pandas DataFrame smaller and faster?" ["posted_time"]=> string(19) "8 лет назад" ["channelName"]=> string(11) "Data School" } [4]=> object(stdClass)#5527 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "4R4WsDJ-KVc" ["related_video_title"]=> string(50) "How do I avoid a SettingWithCopyWarning in pandas?" ["posted_time"]=> string(19) "8 лет назад" ["channelName"]=> string(11) "Data School" } [5]=> object(stdClass)#5545 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "P_q0tkYqvSk" ["related_video_title"]=> string(58) "How do I apply a function to a pandas Series or DataFrame?" ["posted_time"]=> string(19) "8 лет назад" ["channelName"]=> string(11) "Data School" } [6]=> object(stdClass)#5540 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "OYZNk7Z9s6I" ["related_video_title"]=> string(55) "What do I need to know about the pandas index? (Part 1)" ["posted_time"]=> string(19) "9 лет назад" ["channelName"]=> string(11) "Data School" } [7]=> object(stdClass)#5550 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "fCMrO_VzeL8" ["related_video_title"]=> string(41) "How do I handle missing values in pandas?" ["posted_time"]=> string(19) "9 лет назад" ["channelName"]=> string(11) "Data School" } [8]=> object(stdClass)#5526 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "RlIiVeig3hc" ["related_video_title"]=> string(23) "My top 25 pandas tricks" ["posted_time"]=> string(19) "5 лет назад" ["channelName"]=> string(11) "Data School" } [9]=> object(stdClass)#5544 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "2AFGPdNn4FM" ["related_video_title"]=> string(59) "How do I filter rows of a pandas DataFrame by column value?" ["posted_time"]=> string(19) "9 лет назад" ["channelName"]=> string(11) "Data School" } }
How do I work with dates and times in pandas?

How do I work with dates and times in pandas?

How do I select multiple rows and columns from a pandas DataFrame?

How do I select multiple rows and columns from a pandas DataFrame?

How do I use the MultiIndex in pandas?

How do I use the MultiIndex in pandas?

How do I make my pandas DataFrame smaller and faster?

How do I make my pandas DataFrame smaller and faster?

How do I avoid a SettingWithCopyWarning in pandas?

How do I avoid a SettingWithCopyWarning in pandas?

How do I apply a function to a pandas Series or DataFrame?

How do I apply a function to a pandas Series or DataFrame?

What do I need to know about the pandas index? (Part 1)

What do I need to know about the pandas index? (Part 1)

How do I handle missing values in pandas?

How do I handle missing values in pandas?

My top 25 pandas tricks

My top 25 pandas tricks

How do I filter rows of a pandas DataFrame by column value?

How do I filter rows of a pandas DataFrame by column value?

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]