I have a dataframe that will always start out being 5 across, but it could be any height. Ie:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
...
41 42 43 44 45
I want to rearrange the dataframe to look like this:
1 2 3 4 5 6 7 8 9 10 ... 45
What's the best way of doing this? I assume there is a good one-liner that I am missing.