how to use 1st row as column names in pandas code example Example: promote a row in panda dataframe to header df.columns = df.iloc[0] df = df[1:]