Make Your Pandas Code Lightning Fast

Опубликовано: 19 October 2024
на канале: Rob Mulla
185,120
7.7k

Speed up slow pandas/python code by 2500x using this simple trick. Face it, your pandas code is slow. Learn how to speed it up! In this video Rob discusses a key trick to making your code faster! Pandas is an essential tool for any python programmer and data scientist. Using the pandas apply function, using vectorized functions, the speed difference can be significant. Write faster python code.

Timeline
00:00 Intro
00:46 Creating our Data
02:39 The Problem
03:48 Coding Up the Problem
04:43 Level 1: Loop
06:29 Level 2: Apply
07:27 Level 3: Vectorized
09:31 Plot The Speed Comparison
10:23 Outro

Follow me on twitch for live coding streams:   / medallionstallion_  

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