I always like to visualize data and see the detail if possible so it was with great joy that I stumbled across DataFrame.style this morning. Here is an example of how it helps us to visualize some Titanic survival rates by sex and passenger class:

The Pandas documentation itself is pretty comprehensive, but if you’re looking for a slightly friendlier introduction with examples then head over modeanalytics for a very nice article and walkthrough. Enjoy!

Comments
One response to “Pandas dataframe styling – cool!”
[…] is what it looks like (I also got to do Pandas dataframe styling to make the bad stuff stand out in […]
LikeLike