Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
promote a row in panda dataframe to header
Jeff Ritter
Programming language:
Python
2021-08-01 18:37:23
0
Q:
promote a row in panda dataframe to header
Victoria fan
Code:
Python
2021-07-31 20:48:40
df.columns = df.iloc[0] df = df[1:]
0
Tags
data
row
frame
dataframe
Related
add a row at top in pandas dataframe
pandas load dataframe without header
add rows to dataframe pandas
python update header row
Applies the f function to all Row of this DataFrame
add new row to dataframe pandas
how to create new header of a dataframe in python
iterate over rows dataframe
Renaming row value in pandas
how to add list as new row to pandas dataframe
dataframe add row
append one row to pandas dataframe
python dataframe percentage change previous row
how to add a row to a dataframe in python
pandas change last row
New to Communities?
Join the community