Speed Up Your Pandas Dataframes

Published: 29 March 2022
on channel: Rob Mulla
74,627
3.5k

In this video Rob Mulla teaches how to make your pandas dataframes more efficient by casting dtypes correctly. This will make your code faster, use less memory and smaller when saving to disk or a database.

Timeline:
00:00 Intro
00:47 Imports and Data Creation
02:32 Dataframe Memory Use
03:20 Baseline Speed Test
04:15 Casting Categorical
05:45 Downcasting Ints
07:07 Downcasting floats
08:15 Casting Bool Types
09:15 Benchmark Comparison
11:08 Outro

Thanks for taking the time to watch this video. Follow me on twitch for live coding streams:   / medallionstallion_  

Speed up Pandas Code:    • Make Your Pandas Code Lightning Fast  
Intro to Pandas video:    • A Gentle Introduction to Pandas Data ...  
Exploritory Data Analysis Video:    • Exploratory Data Analysis with Pandas...  

Youtube: https://youtube.com/@robmulla?sub_con...
Discord:   / discord  
Twitch:   / medallionstallion_  
Twitter:   / rob_mulla  
Kaggle: https://www.kaggle.com/robikscube

#python #code #datascience #pandas


Watch video Speed Up Your Pandas Dataframes online without registration, duration hours minute second in high quality. This video was added by user Rob Mulla 29 March 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 74,627 once and liked it 3.5 thousand people.