Given the following List: val l = List(List(1, 2, 3), List(4, 5), List(6, 7, 8)) If I try to transpose it, Scala will throw the following error:
I have large data files of values on a 2D grid. They are organized such that subsequent rows of data in the grid are subsequent lines in the file.
I 开发者_开发百科have a dataframe that looks like this I would like to rearrange the dataframe so that for each cell on the first column, it has 27 columns by transpose the row and header. It is hard