pandas set header row to 0 code example Example: python update header row new_header = df.iloc[0] df = df[1:] df.columns = new_header