Answers for "pandas take first row as column names"

0

promote a row in panda dataframe to header

df.columns = df.iloc[0]
df = df[1:]
Posted by: Guest on August-25-2020

Code answers related to "pandas take first row as column names"

Python Answers by Framework

Browse Popular Code Answers by Language