How do I melt a pandas dataframe?
Note for users with pandas version under < 0.20.0, I will be using df.melt(…) for my examples, but your version would be too low for df.melt, you would need to use pd.melt(df, …) instead. Documentation references: Most of the solutions here would be used with melt, so to know the method melt, see the documentaion … Read more