The House of Mesia’s X
Live0 online now0 members0 guests0 on this page0 page views0 today0 all-time visits
← Teaching ai computing

Lecture 3: Pandas for ML

Like & subscribe

Lab Link: https://ai.thes30.com/problems/w1-d3-pandas-for-ai-ml In this session of Jaspinder’s Pandas for ML series, we dive deep into the practical use of Pandas for Machine Learning workflows. We cover: * Why Pandas is important for ML * Pandas vs SQL * Vectorization and performance * DataFrames, Series, and data types * loc vs iloc * Boolean masking and filtering * Creating synthetic datasets * GroupBy and Aggregations * Transform vs Aggregate * Joins and Merges * Row explosion in many-to-many joins * Common Pandas interview pitfalls * Memory and performance considerations This lecture focuses not just on syntax, but on the mental models and real-world ML engineering concepts behind Pandas operations. Perfect for: * ML beginners * Data Science interviews * Feature engineering preparation * Analytics engineering fundamentals * Practical Pandas usage for Machine Learning 00:00 Introduction to ML Pipeline and Pandas 01:02 Why Pandas for Machine Learning 02:39 Pandas vs SQL 05:45 Pandas vs Spark and Large Datasets 07:05 DataFrames, Series, and Data Types 09:46 First Things to Check in a DataFrame 10:44 Random Seeds and Reproducibility 12:40 loc vs iloc Explained 15:14 Fancy Indexing vs Basic Indexing 17:20 loc vs iloc Slicing Differences 19:15 Creating Synthetic User and Event Data 21:45 Event Probabilities and Random Generation 27:20 Boolean Masking and Filtering Purchases 33:15 Adding New Columns in Pandas 34:40 Copy vs Reference in DataFrames 38:20 GroupBy Basics 42:15 Building User Feature Tables 43:45 Creating is_purchase Feature 46:00 Aggregations with Multiple Columns 48:55 Why GroupBy Aggregate is Efficient 50:45 Internal Working of GroupBy Objects 55:40 Handling Missing Values (isna) 57:10 Pandas vs Polars Discussion 58:30 Joins and Merges Explained 01:00:00 Left Join vs Inner Join 01:03:30 Merging User and Feature Tables 01:05:30 Filling Missing Values After Merge 01:10:20 Reset Index Explained 01:13:00 Transform vs Aggregate 01:15:45 Many-to-Many Joins and Row Explosion 01:19:20 Preventing Row Explosion in Merges #Pandas #MachineLearning #Python #DataScience #FeatureEngineering #MLEngineering #SQL #NumPy #AI #Jaspinder

Lesson 323 · Teaching ai computing

Guided learning · 0 of 5 steps

Make this lesson your own

Watch & notice

Lecture 3: Pandas for ML

What is the main idea? Notice one detail you could explain to someone else.

Sign in to save practice

Sign in to record yourself and receive speech feedback.

Sign in to practice