Answers for "pandas flip dataframe"

C
0

flip exis in dataframe

>>> df1_transposed = df1.T # or df1.transpose()
>>> df1_transposed
      0  1
col1  1  2
col2  3  4
Posted by: Guest on August-08-2020

Code answers related to "C"

Browse Popular Code Answers by Language