Answers for "how to use 1st row as column names in pandas"

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 "how to use 1st row as column names in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language