How do I select multiple rows and columns from a pandas DataFrame?
Have you ever been confused about the "right" way to select rows and columns from a DataFrame? pandas gives you an incredible number of options for doing so, but in this video, I'll outline the current best practices for row and column selection using the loc, iloc, and ix methods.
SUBSCRIBE to learn data science with Python:
https://www.youtube.com/dataschool?sub_confirmation=1
JOIN the "Data School Insiders" community and receive exclusive rewards:
https://www.patreon.com/dataschool
== RESOURCES ==
GitHub repository for the series: https://github.com/justmarkham/pandas-videos
"loc" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html
"iloc" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.iloc.html
"ix" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.ix.html
Summary of the pandas API for selection: https://github.com/pydata/pandas/issues/9595
== LET'S CONNECT! ==
Newsletter: https://www.dataschool.io/subscribe/
Twitter: https://twitter.com/justmarkham
Facebook: https://www.facebook.com/DataScienceSchool/
LinkedIn: https://www.linkedin.com/in/justmarkham/
Видео How do I select multiple rows and columns from a pandas DataFrame? канала Data School
SUBSCRIBE to learn data science with Python:
https://www.youtube.com/dataschool?sub_confirmation=1
JOIN the "Data School Insiders" community and receive exclusive rewards:
https://www.patreon.com/dataschool
== RESOURCES ==
GitHub repository for the series: https://github.com/justmarkham/pandas-videos
"loc" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html
"iloc" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.iloc.html
"ix" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.ix.html
Summary of the pandas API for selection: https://github.com/pydata/pandas/issues/9595
== LET'S CONNECT! ==
Newsletter: https://www.dataschool.io/subscribe/
Twitter: https://twitter.com/justmarkham
Facebook: https://www.facebook.com/DataScienceSchool/
LinkedIn: https://www.linkedin.com/in/justmarkham/
Видео How do I select multiple rows and columns from a pandas DataFrame? канала Data School
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How do I apply multiple filter criteria to a pandas DataFrame?Solving real world data science tasks with Python Pandas!How do I apply a function to a pandas Series or DataFrame?Loop / Iterate over pandas DataFrame (2020)What do I need to know about the pandas index? (Part 1)Pandas loc and iloc | Pandas loc tutorial | Pandas iloc slicing | loc vs ilocPython Pandas: Select, SLICE & FILTER Data rows & columns by Index or ConditionalsHow do I avoid a SettingWithCopyWarning in pandas?How do I work with dates and times in pandas?How do I find and remove duplicate rows in pandas?When should I use the "inplace" parameter in pandas?Complete Python Pandas Data Science Tutorial! (Reading CSV/Excel files, Sorting, Filtering, Groupby)How do I handle missing values in pandas?My top 25 pandas tricksHow do I filter rows of a pandas DataFrame by column value?How do I explore a pandas Series?When should I use a "groupby" in pandas?How do I change the data type of a pandas Series?How do I create dummy variables in pandas?