use 1 row as column names in pandas code example
Example 1: set header in dataframe 2nd line
In [23]: df.columns = df.iloc[1]
Example 2: make first row column names pandas
df.rename(columns=df.iloc[0])
In [23]: df.columns = df.iloc[1]
df.rename(columns=df.iloc[0])