Python Forum

Full Version: Help to control pandas.melt function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I’m using pandas to processing my raw data.
I have raw data like this:
[attachment=2420]

I want to convert some columns to row using pd.melt like this:
[attachment=2421]

But, I don’t know how to move USL & LSL transpose to 2 columns.
Can anyone help me.
Thanks so much!!!
My file:
Quote:https://docs.google.com/spreadsheets/d/1...ue&sd=true