Visualizing Pandas' Pivoting and Reshaping Functions

i love using python’s package for data analysis. the is a great place to start learning how to use it for data analysis.

things get a lot more interesting once you’re comfortable with the fundamentals and start with . that guide shows some of the more interesting functions of reshaping data. below are some visualizations to go along with the pandas reshaping guide.

Pivot

(thanks to for the correction)

Melt

Stack

Unstack

example #1 – without a parameter

example #2

example #3

Written on April 30, 2018