I have the following data df_matrix
, level_1
and level_2
are the multi-index:
|level_1|level_2|value_1|value_2|value_3|
|-------|-------|-------|-------|-------|
|a |w |1 |2 |3 |
| |y |4 |5 |6 |
| |y |4 |5 |6 |
| |z |7 |8 |9 |
|b |w |11 |21 |31 |
| |x |41 |51 |61 |
| |y |41 |51 |61 |
| |z |71 |81 |91 |
and df_column
, id
is the index:
id | value |
---|---|
value_1 | 0.1 |
value_2 | 0.2 |
value_3 | 0.3 |