modin.pandas.melt¶
- modin.pandas.melt(frame, id_vars=None, value_vars=None, var_name=None, value_name='value', col_level=None, ignore_index: bool = True)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/modin/plugin/extensions/general_overrides.py#L110-L129)¶
Unpivot a DataFrame from wide to long format, optionally leaving identifiers set.
- Parameters:
id_vars (list of identifiers to retain in the result) –
value_vars (list of columns to unpivot on) – defaults to all columns, excluding the id_vars columns
var_name (variable name, defaults to "variable") –
value_name (value name, defaults to "value") –
col_level (int, not implemented) –
ignore_index (bool, not implemented) –
- Returns:
unpivoted on the value columns
- Return type:
Examples