pandas refer to row above code example
Example 1: promote a row in panda dataframe to header
df.columns = df.iloc[0]
df = df[1:]
Example 2: display entire row pandas
pd.set_option('display.max_colwidth', None)
df.columns = df.iloc[0]
df = df[1:]
pd.set_option('display.max_colwidth', None)