# Group Like Columns In Data Frame

#### FFA

##### New Member
I have a data frame takes the following form.
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   |
I need to organize it in columns instead of rows. It should look like this.
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   |
Can any body suggest how to do this?