I have dataframe. I tried simple a function to convert column names to list. Surprisingly I am getting tuples. Why?
my code:
big_list = [[nan, 21.0, 3.2, 12.0, 3.24],
 [42.0, 23.799999999999997, 6.0, 13.599999999999998, 5.24],
 [112.0, 32.199999999999996, 14.400000000000002, 18.4, 11.24],
 [189.0, 46.2, 28.400000000000002, 26.400000000000002, 21.240000000000002]]
    df= pd.DataFrame(np.array(big_list),index=range(0,4,1),columns=[sns])
df = 
          ig      abc      def    igh    klm
    0      NaN    21.0     3.2   12.0    3.24
    1     42.0    23.8     6.0   13.6    5.24
    2    112.0    32.2    14.4   18.4   11.24
    3    189.0    46.2    28.4   26.4   21.24
print(list(df))
present output:
   [('ig',), ('abc',), ('def',), ('igh',), ('klm',)]
Expected outptu:
  ['ig','abc','def','igh','klm']
 
    