How NOT to write pandas code

In this guide, I first show an example of “How NOT to” and then show a proper “How to” way of working with pandas.

Image for post
Image for post
Photo by Sid Balachandran on Unsplash

Most of “How NOT TOs” comes from my own beginnings with pandas.

In this guide, I first show an example of “How NOT to” and then show a proper “How to” way of working with pandas. The arguments for improvement are concise, more readable code and faster execution.

Written by

Senior Data Scientist, tweeting twitter.com/romanorac.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store