pandas get first two columns python code example Example: make first row column names pandas df.rename(columns=df.iloc[0])