I'm trying to rearrange a dataframe with 5 variables
Data columns (total 7 columns):
Nane 3966 non-null values
Value1 3966 non-null values
Value2 3966 non-null values
Value3 3966 non-null values
Value4 3966 non-null values
Value5 3966 non-null values
Period 3966 non-null values
I'd like period to be the columns, and the other ones as rows.
So
Name Value1 .... Value 5 Period becomes
Period 1 period 2 period3 .... period 3966
Name
Value 1
...
Value 5
I've tried using the stack/unstack and the transpose function, but I just can't figure it out. Does anyone have any pointers ?