I have a simple dataframe1 with 32 raws like this :
| tot | |
|---|---|
| time | 67 |
| price | 44 |
| money | 35 |
| quality | 10 |
and i have another dataframe2 like this:
| france | UK | italy | |
|---|---|---|---|
| price | 33 | 67 | 87 |
| time | 42 | 57 | 98 |
| quality | 38 | 24 | 12 |
| money | 14 | 63 | 22 |
I would like to sort the values in my dataframe2 by the list in dataframe1, so time,price,money,quality.
I can do it manually setting and index for dataframe2, but there are a lots of columns, i would like to do this in automatic way.
Thanks