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