Python: 🐍 Filtering CSV data with pandas | Tutorial for beginners (German)

Опубликовано: 11 Июнь 2021
на канале: Programmieren mit Chris 🚀
11,681
220

Hello!

In this video, we'll learn step by step, using a simple example, how to filter data from a CSV file using Python. To do this, we'll grab the data from 27,000 cities and filter out all cities located in Israel with more than 200,000 inhabitants. It sounds complicated, but it's done in four lines of code. The great pandas module 🐼 makes it possible. Enjoy the video!

Stay curious,
Your Chris

My donation hat (Thank you!)
💰 Paypal -- https://www.paypal.com/paypalme/okadf
☕ Buy me a Coffee -- https://www.buymeacoffee.com/chrischma
🛡️ Patreon -   / chrischma  

Tutorial: Download Pycharm for free:
   • PyCharm (2023) kostenlos für Schüler und S...  

Timecodes:
00:00 Introduction: User question from Thomas
00:26 The project
00:53 The module: pandas
01:32 Reading csv with read_csv
02:32 Test
02:40 Filtering data with query
04:52 Using multiple filters simultaneously
05:54 Test

Source codes:
https://github.com/chrischma/Programm...

Modules used:
pandas (pip3 install pandas)

+++ FAQ and sources +++

Sound effects: Freesound.org | Soundbible.com
Graphics: Pixabay.com
Music: YouTube Library

Is Python free?
Yep!

Do I need a Mac to use Python?
Nope! You can use Python on Windows, Mac, Linux, or online.

What audio setup are you using?
Microphone: Rode Procaster
Interface: Steinberg UR22mkII
Stand: K&M 21060 / K&M 2150
Shock mount: Rode PSM1
Windscreen: Rode WS2

What are you using to record your footage?
OBS: https://obsproject.com/de
Cameras: Internal MacBook webcam
and Canon Powershot SX510 HS

What do you use for programming?
Computer: MacBook Pro (Retina, 13", Late 2013)
Editor: Sublime Text 3 https://www.sublimetext.com/
Console: Mac Terminal
Cloud services: https://colab.research.google.com or https://jupyter.org/

What do you edit with?
DaVinci Resolve 16 (free)

+++ My videos on #Python: +++

🎬 All videos
Playlist:    • Python Tutorial | Deutsch (Alle Videos)  

🚀 Getting started and preparation
Playlist:    • 🚀 Python Starthilfe | Python Tutorials | D...  
Installing Python on MAC    • Python installieren Mac (VIDEOBESCHREIBUNG...  
Installing Python on Windows    • Python Download + installieren WINDOWS 👍 |...  
Using Python in the Browser    • Video  
Installing PyCharm    • PyCharm (2023) kostenlos für Schüler und S...  
Creating PyCharm Projects    • Programmieren lernen: Ein Python-Projekt m...  
(...)

👣 Basics and First Steps
Playlist:    • 👣 Python Grundlagen und erste Schritte | P...  
Hello World (our first command)    • Unser erster Befehl - "Hello World" in Pyt...  
Starting a Script    • Python Script starten Mac / Windows 🖥️ |  ...  
String Types:    • Python Tutorial | F-Strings 🚕| (Deutsch, #19)  
What does integer mean?    • Python Tutorial | Was ist eigentlich ein I...  
What are arrays?    • Python Tutorial | Array 💡 und Liste | (Deu...  
For loops    • Video  
Operators    • Python Operatoren: Werte vergleichen mit #...  
Creating your own modules    • Eigene Module nutzen und importieren / Fun...  
Finding the smallest and largest values ​​in a list    • Python: Kleinste und größte Werte finden 🐍...  
Merging lists with dict    • Zwei Listen in einem Dictionary zusammenfa...  
(...)

⌨️ The Terminal
Playlist:    • ⌨️ Das Terminal | Python Tutorial (Deutsch)  
5 practical terminal commands    • 5 praktische Terminal-Befehle für den Allt...  
Terminal menus    • Schnelles Terminal-Menü in #Python | Tutor...  
Retro menus with clicks    • Python Tutorial | Retro Menu mit CLICK | "...  
Terminal markers    • Python: Bunte Texte in der Konsole ausgebe...  
(...)

🌐 All about the web
Web automation:    • Python Tutorial: 🌍 Web-Automatisierung mit...  
Playlist:    • 🌐 Rund ums Web | Python Tutorial (Deutsch)...  
Weather API requests    • Python API Request | Tutorial (Deutsch) fü...  
NASA API request    • Python API Tutorial (Deutsch) | 🚀 Für Anfä...  
Web scraping with BeautifulSoup    • Python: Einfacher Web-Scraper | Tutorial f...  
Send Telegram messages    • Python: 🤖 Unser erster Telegram-Bot  | Ein...  
(...)

🌈 More Tutorials
Playlist:    • Python Tutorial | Deutsch (Alle Videos)  
Reading CSV Files    • CSV-Dateien mit Python öffnen 🐍 | Einfache...  
Sorting and Creating CSV Files    • Python: 🐍 csv-Daten sortieren & schreiben ...  
Filtering CSV Files with Pandas    • Python: 🐍 csv-Daten filtern mit pandas | T...  
Creating Sliders    • Python Gui Tutorial: Slider mit Tkinter | ...  
Creating MacOS Apps    • Python-Datei in MacOS-App umwandeln 🍏 | Ei...  
Recording Audio    • Python Tutorial |  Sound aufnehmen 🔴 | (De...  
Voice Output    • Siri (Text to Speech) mit Python 🗣️| Tutor...  
Creating Charts    • Python Diagramm erstellen 📈 | Einfaches Tu...  
enumerate    • 🍪 Python Snacks: Was ist eigentlich enumer...  
(...)


На этой странице сайта вы можете посмотреть видео онлайн Python: 🐍 Filtering CSV data with pandas | Tutorial for beginners (German) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Programmieren mit Chris 🚀 11 Июнь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 11,681 раз и оно понравилось 220 зрителям. Приятного просмотра!