How do I filter rows of a pandas DataFrame by column value?
Let's say that you only want to display the rows of a DataFrame which have a certain column value. How would you do it? pandas makes it easy, but the notation can be confusing and thus difficult to remember. In this video, I'll work up to the solution step-by-step using regular Python code so that you can truly understand the logic behind pandas filtering notation.
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
== 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 filter rows of a pandas DataFrame by column value? канала 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
== 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 filter rows of a pandas DataFrame by column value? канала Data School
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![How do I select multiple rows and columns from a pandas DataFrame?](https://i.ytimg.com/vi/xvpNA7bC8cs/default.jpg)
![Complete Python Pandas Data Science Tutorial! (Reading CSV/Excel files, Sorting, Filtering, Groupby)](https://i.ytimg.com/vi/vmEHCJofslg/default.jpg)
![How do I handle missing values in pandas?](https://i.ytimg.com/vi/fCMrO_VzeL8/default.jpg)
![How do I apply multiple filter criteria to a pandas DataFrame?](https://i.ytimg.com/vi/YPItfQ87qjM/default.jpg)
![](https://i.ytimg.com/vi/TbUadvaw99c/default.jpg)
![How do I find and remove duplicate rows in pandas?](https://i.ytimg.com/vi/ht5buXUMqkQ/default.jpg)
![How do I sort a pandas DataFrame or a Series?](https://i.ytimg.com/vi/zY4doF6xSxY/default.jpg)
![How do I apply a function to a pandas Series or DataFrame?](https://i.ytimg.com/vi/P_q0tkYqvSk/default.jpg)
![What do I need to know about the pandas index? (Part 1)](https://i.ytimg.com/vi/OYZNk7Z9s6I/default.jpg)
![How do I use the "axis" parameter in pandas?](https://i.ytimg.com/vi/PtO3t6ynH-8/default.jpg)
![Python Pandas Tutorial (Part 5): Updating Rows and Columns - Modifying Data Within DataFrames](https://i.ytimg.com/vi/DCDe29sIKcE/default.jpg)
![Python Pandas: Select, SLICE & FILTER Data rows & columns by Index or Conditionals](https://i.ytimg.com/vi/DCE6t3vNfvM/default.jpg)
![](https://i.ytimg.com/vi/hgkmPmsDzVI/default.jpg)
![Your pandas questions answered!](https://i.ytimg.com/vi/B-r9VuK80dk/default.jpg)
![Python Pandas Tutorial (Part 4): Filtering - Using Conditionals to Filter Rows and Columns](https://i.ytimg.com/vi/Lw2rlcxScZY/default.jpg)
![When should I use a "groupby" in pandas?](https://i.ytimg.com/vi/qy0fDqoMJx8/default.jpg)
![How do I merge DataFrames in pandas?](https://i.ytimg.com/vi/iYWKfUOtGaw/default.jpg)
![How do I use string methods in pandas?](https://i.ytimg.com/vi/bofaC0IckHo/default.jpg)
![Advanced Excel Filtering Across Workbooks Tutorial - Excel Automation with Python Series](https://i.ytimg.com/vi/Jiyz5RLdV2s/default.jpg)
![How do I use the MultiIndex in pandas?](https://i.ytimg.com/vi/tcRGa2soc-c/default.jpg)