When you first start out using Pandas, it’s often best to just get your feet wet and deal with problems as they come up. Then, the years pass, the amazing things you’ve been able to build with it start to accumulate, but you have a vague inkling that you keep making the same kinds of mistakes and that your code is running really slowly for what seems like pretty simple operations. This is when it’s time to dig into the inner workings of Pandas and take your code to the next level. Like with any library, the best way to optimize your code is to understand what’s going on underneath the syntax.

First in Part I, we’re going to eat our vegetables and cover writing clean code and spotting common silent failures. Then in Part II, we’ll get to speeding up your runtime and lowering your memory footprint.

I also made a Jupyter notebook with the whole lesson, both parts included.

#pandas #pandemonium

How to Avoid a Pandas Pandemonium
1.20 GEEK