Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas convert first row to header

df.columns = df.iloc[0] 

df = df[1:]

df.head()
Source by www.stackvidhya.com #
 
PREVIOUS NEXT
Tagged: #pandas #convert #row #header
ADD COMMENT
Topic
Name
7+5 =