make olum 0 of a datframe the header code example
Example 1: promote a row in panda dataframe to header
df.columns = df.iloc[0]
df = df[1:]
Example 2: set header in dataframe 2nd line
In [23]: df.columns = df.iloc[1]
df.columns = df.iloc[0]
df = df[1:]
In [23]: df.columns = df.iloc[1]