1 | initial version |
id_vars
parameter in pd.melt()
.var_name
parameter to specify the name of the new column that will contain the unpivoted variable names.value_name
parameter to specify the name of the new column that will contain the unpivoted values.pd.melt()
function to unpivot the specified columns.