Reshaping Pandas DataFrames
Melt, Stack and Pivot functions
Published in
5 min readApr 20, 2020
Pandas is a very powerful Python data analysis library that expedites the preprocessing steps of your project. The core data structure of Pandas is DataFrame which represents data in tabular form with labeled rows and columns. In this post, I will try to explain how to reshape a dataframe by modifying row-column structure.