filmov
tv
Pandas QUERY // Examples of pandas query with MULTIPLE CONDITIONS and pandas query with a VARIABLE

Показать описание
Learn how to filter Python pandas dataframes using the pandas query method. This video shows you how to write strings needed for the pandas query and compares those to writing pandas masks. I'll show you how to reference columns with spaces by using back ticks. And you can level up your Python pandas code by writing a query with a variable using the at symbol. I'll also show you examples of how to use pandas query with multiple conditions such as making sure two different pandas columns satisfy conditional statements with query, or by to use pandas query or, which makes sure at least one conditional is true. Finally, you'll learn how to make your changes permanent by using the Python pandas query option inplace. Check out this video in my "Pandas Tips" series to see pandas tips and tricks in a quick pandas tutorial format.
0:00 Introduction
0:23 Set up and data
0:45 Query vs Mask
2:21 Columns with SPACES
3:26 Reference VARIABLES
5:22 AND &
7:00 OR |
7:31 Save changes: inplace
8:07 Conclusion & BLOOPS
💻 Github CODE 💻
🎥 Related VIDEOS 🎥
• Full Pandas Tips series:
📖 BOOKS about pandas from my Amazon Storefront 📖
☕ Buy me a COFFEE ☕
If you have enjoyed the content presented in this video and are able, consider buying a virtual cup of coffee to keep my channel going!
#python #pandas #pythonprogramming
0:00 Introduction
0:23 Set up and data
0:45 Query vs Mask
2:21 Columns with SPACES
3:26 Reference VARIABLES
5:22 AND &
7:00 OR |
7:31 Save changes: inplace
8:07 Conclusion & BLOOPS
💻 Github CODE 💻
🎥 Related VIDEOS 🎥
• Full Pandas Tips series:
📖 BOOKS about pandas from my Amazon Storefront 📖
☕ Buy me a COFFEE ☕
If you have enjoyed the content presented in this video and are able, consider buying a virtual cup of coffee to keep my channel going!
#python #pandas #pythonprogramming
Комментарии