MENU

Fun & Interesting

Make Your Pandas Code Lightning Fast

Rob Mulla 194,774 3 years ago
Video Not Working? Fix It Now

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: https://www.twitch.tv/medallionstallion_ Intro to Pandas video: https://www.youtube.com/watch?v=_Eb0utIRdkw Exploritory Data Analysis Video: https://www.youtube.com/watch?v=xi0vhXFPegw * Youtube: https://youtube.com/@robmulla?sub_confirmation=1 * Discord: https://discord.gg/HZszek7DQc * Twitch: https://www.twitch.tv/medallionstallion_ * Twitter: https://twitter.com/Rob_Mulla * Kaggle: https://www.kaggle.com/robikscube #python #code #datascience #pandas

Comment