I have a data frame takes the following form.
I need to organize it in columns instead of rows. It should look like this.
Can any body suggest how to do this?
Sorry about the formating.
Code:
Type| val1 | val2 | val3 | Type | val1 | val2 | val3 | Type | val1 | val2 | val3 |
---------------------------------------------------------------------------------------
A | 3 | 2 | 4 | A | 3 | 2 | 4 | A | 4 | 7 | 8 |
B | 8 | 6 | 9 | B | 4 | 7 | 2 | B | 8 | 6 | 9 |
Code:
Type | val1 | val2 | val3 |
-----------------------------
A | 3 | 2 | 4 |
B | 8 | 6 | 9 |
A | 3 | 2 | 4 |
B | 4 | 7 | 2 |
A | 4 | 7 | 8 |
B | 8 | 6 | 9 |
Sorry about the formating.
Last edited: