- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28
9. Transposed DataFrame
        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