I'm trying to transform a data frame in the form:
Record Value1 Value2 Value3
0 1 2 3
0 4 5 6
0 7 8 9
1 1 2 3
1 4 5 6
1 7 8 9
2 1 2 3
2 4 5 6
2 7 8 9
To a wide format where row contains all related values like this:
Record Value1_1 Value2_1 Value3_1 Value1_2 Value2_2 Value3_2 Value1_3 Value2_3 Value3_3
0 1 2 3 4 5 6 7 8 9
1 1 2 3 4 5 6 7 8 9
2 1 2 3 4 5 6 7 8 9
I've been trying to use pivot, pivot_table and reindex, methods but I either get cryptic errors on "column value is not 1-dimensional" or other undescriptive errors.
Any clues on how to do that? Pivoting and multi-indexes are very complicated subjects and I still can't wrap my head around them :(
Thanks!