Unpivot a DataFrame from wide to long format, optionally leaving identifiers set (pandas.melt).
Input
input_table
2d excel like table
Output
output_table
2d excel like table
Configuration
id_vars
Column(s) to use as identifier variables.
list
value_vars
Column(s) to unpivot. If not specified, uses all columns that are not set as *id_vars*.
list
var_name
Name to use for the 'variable' column. If None it uses `frame.columns.name` or 'variable'.
string
value_name
Name to use for the 'value' column.
string
value
col_level
If columns are a MultiIndex then use this level to melt.
string
ignore_index
If True, original index is ignored. If False, the original index is retained. Index labels will be repeated as necessary.
bool
true