pymrio.convert_to_long
- pymrio.convert_to_long(df, value_name='value')
Converts the pymrio matrix df format to a long format
FIX: All index and columns become separate columns (not index!)
- Parameters
df (pymrio matrix) – The pymrio matrix (e.g. Z, F, etc) to convert
value_name (str, optional) – The name of the value column, default: ‘value’ as defined in constants.py
- Return type
pd.DataFrame