a tumblelog
Mon 09 Dec 2019

How NOT to write pandas code

I’ve been using pandas as my main tool for data analysis for the last 4 years. I must admit that most of “How NOT to code with pandas” comes from my beginnings. While doing code reviews I still see many of “Hot NOT to-s” with more experienced programmers.

In this blog post, I first show an example of “how NOT to” and then show a proper “how TO” way of calculating statistics with pandas. The arguments for improvement are concise, more readable code and faster execution.

Source: How NOT to write pandas code, an article by Roman Orac.