You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oleksandr Zaytsev edited this page Jan 10, 2018
·
1 revision
Sometimes it is useful to transpose a data frame made out of columns and rows into rows and columns. For example, if you want to transpose the data frame created in section Creating DataFrame from an array of rows or columns, you can simply write df transposed and it will return you a new data frame which looks like this
| A B C
------------+----------------------------
City | Barcelona Dubai London
Population | 1.609 2.789 8.788
BeenThere | true true false