new_header = df.iloc[0] #grab the first row for the header
df = df[1:] #take the data less the header row
df.columns = new_header #set the header row as the df header
More Related Contents:
- Replacing Header with Top Row
- Find row where values for column is maximal in a pandas DataFrame
- Pandas dataframe get first row of each group
- Merge multiple column values into one column in python pandas
- How to add header row to a pandas DataFrame
- How do you remove the column name row when exporting a pandas DataFrame?
- Collapsing rows in a Pandas dataframe if all rows have only one value in their columns
- Pandas min() of selected row and columns
- When should I (not) want to use pandas apply() in my code?
- How can I plot separate Pandas DataFrames as subplots?
- In pandas, is inplace = True considered harmful, or not?
- How do I convert a pandas Series or index to a Numpy array? [duplicate]
- How to reversibly store and load a Pandas dataframe to/from disk
- Pandas convert dataframe to array of tuples
- Update row values where certain condition is met in pandas
- Pandas finding local max and min
- How to import a text file on AWS S3 into pandas without writing to disk
- Python, Pandas : write content of DataFrame into text File
- extracting days from a numpy.timedelta64 value
- python pandas dataframe slicing by date conditions
- xlrd.biffh.XLRDError: Excel xlsx file; not supported [duplicate]
- Plotting pandas timedelta
- Set value of one Pandas column based on value in another column
- Converting Pandas dataframe into Spark dataframe error
- Change main plot legend label text
- Remove NaN/NULL columns in a Pandas dataframe?
- Group DataFrame in 5-minute intervals
- countplot with normalized y axis per group
- double quoted elements in csv cant read with pandas
- how to understand closed and label arguments in pandas resample method?