how to make first row as column names in dataframe code example Example: first row as column df df.rename(columns=df.iloc[0])