python update header row

Solutions on MaxInterview for python update header row by the best coders in the world

showing results for - "python update header row"
Isabell
25 Jul 2020
1new_header = df.iloc[0] 
2
3df = df[1:] 
4
5df.columns = new_header