make columna name as a row code example Example: first row as column df df.rename(columns=df.iloc[0])