Answers for "pandas set a specific row as headers"

0

promote a row in panda dataframe to header

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

pandas return specific row

df.iloc[1] # replace index integer with specific row number
Posted by: Guest on December-10-2020

Code answers related to "pandas set a specific row as headers"

Python Answers by Framework

Browse Popular Code Answers by Language