I have a file with single column data. Few of them needs to be converted to column as header. After a few dask computations, I have reduced my dataframe as below:
In [9]: df.compute()
Out[9]:
                                    *
0                    140 Global Intel
1                         1 Frequency
2                          2 Currency
3               3 Currency Conversion
4                            4 Market
5                      5 Segmentation
6                            6 Sector
Is it possible to transpose the rows into columns and create a new dataframe using dask itself? Any help is appreciated.
EDIT: Here how's my final dataframe should look like after tranpose.
In [22]: df_final
Out[22]:
Empty DataFrame
Columns: [140 Global Intel, 1 Frequency, 2 Currency, 3 Currency Conversion, 4 Market, 5 Segmentation, 6 Sector]
Index: []
 
    