Python List Comprehension for Data Science / Data Analysis - P.4 @LukeBarousse
Python List Comprehension for Data Science / Data Analysis - P.4  @LukeBarousse
Uploaded November 2020 | Updated September 2026, 6 hours ago
Python Fundamentals Course (DataCamp) 👉🏌 lukeb.co/PythonBasicsDataCamp
Data Analyst Track w/ Python (DataCamp) 👉🏌 lukeb.co/PythonAnalystDataCamp
(My recommended courses that I took to learn Python!)

This video provides an overview of List, Set, Tuple, & Dictionary Comprehension frequently used by Data Analysts and Data Scientists. We cover how to build multiple examples for data analysis purposes including conditional statements (i.e. if statements). Finally, we combine what we learned to use set comprehension to provide a list of seasons that an inputted actor is a part of for the TV show 'The Office.'

Playlist (Course) Material 👉🏌 github.com/lukebarousse/Python_Intro

00:00 Intro
01:10 List Comprehension: Comparing For Loops
03:41 List Comprehension: Modifying Output Expression
04:47 Other Comprehension Methods
05:32 Tuple Comprehension
06:41 Set Comprehension
07:28 Dictionary Comprehension
08:16 Dictionary Comprehension w/ zip()
10:45 Conditions in Comprehension: If Statements
12:38 Application: Season Search Tool
14:17 Application: Import Data from CSV
17:13 Application: Set Comprehension
19:08 Application: Building User Input
21:34 Conclusion/Next Video


Basics of Python playlist 👉🏌 youtube.com/playlist?list=PL_CkpxkuPiT8zTx9XO9jFf4PQ0iwBWfXB

Setting up Python on your computer playlist 👉🏌 youtube.com/playlist?list=PL_CkpxkuPiT9udgCeqZpS4HKF6uIzra3r

Recommended Certificates/Courses (Affiliate Links)
==================================
DataCamp:
Python 👉🏌 lukeb.co/PythonBasicsDataCamp
Power BI 👉🏌 lukeb.co/PowerBIDataCamp
Tableau 👉🏌 lukeb.co/TableauDataCamp
R 👉🏌 lukeb.co/RDataCamp
Data Analyst w/ Python 👉🏌 lukeb.co/PythonAnalystDataCamp
DataCamp Subscription (Monthly $25USD) 👉🏌 lukeb.co/DataCampSub

Coursera:
Google Data Analytics Certificate (BEGINNERS START HERE) 👉🏌 lukeb.co/GoogleCert
Python for Everybody 👉🏌 lukeb.co/PythonForEverybody
SQL 👉🏌 lukeb.co/PostgresSQLUofM
Coursera Plus Subscription (Monthly $59USD) 👉🏌 lukeb.co/CourseraMonthly
Coursera Plus Subscription (Annual $399USD) 👉🏌 lukeb.co/CourseraYearly

My Tech for Data Science
(Includes Amazon Affiliate Links)
==================================
💻 Dell New XPS 13 (PC of choice) 👉🏌 geni.us/DellNewXPS13
💻 Dell New XPS 15 👉🏌 geni.us/DellNewXPS15
👚🏌‍💻 M1 Macbook Air 8GB (Mac of choice) 👉🏌 geni.us/M1macAir8GB
👚🏌‍💻 M1 Macbook Pro 8GB 👉🏌 geni.us/M1macPro8GB
🔌 Must-have Mac dock 👉🏌 geni.us/CalDigitTS3
🖥 M1 Multiple monitor adapter 👉🏌 geni.us/DisplayLinkAdapter
⌚ Mac Keyboard 👉🏌 geni.us/MacMagicKeyboard
🖱 Mac Mouse 👉🏌 geni.us/MacMagicMouse
💟 Small (1TB) External HD 👉🏌 geni.us/WDelements1TB
💟 Large (14TB) External HD 👉🏌 geni.us/WDelements14TB
🏢 Standing Desk 👉🏌 geni.us/StandingDeskFezibo
📗 Data Science Must Read 👉🏌 geni.us/StorytellingWithData
📞 Camera of Choice 👉🏌 geni.us/SonyA6600body
*For computers, I recommend checking the manufacturer's website (i.e., dell.com) for deals/rebates*

Social Media / Contact Me
======================
🙋🏌‍♂Website: lukebarousse.com
🌄 Instagram: instagram.com/lukebarousse
⏰ TikTok: tiktok.com/@lukebarousse
📘 Facebook: facebook.com/datavizbyluke
📥 Business Inquiries: luke@lukebarousse.com

As an Amazon Associate, I earn a small commission from qualifying purchases on the Amazon links above. It costs you nothing but helps me in keeping the content coming.

#pythontutorial #datavisualization #python
Python List Comprehension for Data Science / Data Analysis - P.4Lambda Functions for Data Science / Data Analysis - Python P.6Data Analyst Bootcamp (FREE 35+ Hour Full Course) - SQL, Excel, Power BI, Python, AI & GitHubThey became Data Analysts with THIS - Google Data Analytics Certificate: One Year LaterTHIS got me my job as a Data Analyst - My portfolio tipThis ChatGPT Change is HUGE for Data AnalystsWhy you should NOT be a Data AnalystWorking with 😰 social anxietyHow I find projects as a Data AnalystExcels Major Upgrade: CoPilot (Microsoft Event Recap)Data Science Jobs WITHOUT Experience 🀷🏌‍♂❌🧑‍💻Python For & While Loops for Data Science / Data Analysis - P.3
Luke Barousse |

Python List Comprehension for Data Science / Data Analysis - P.4

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER