Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas convert header to first row

# best practice is to use the `header=None` parameter
# this way, the initial header will turn into the first row in the dataframe
df = pd.read_csv(file, header=None)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #convert #header #row
ADD COMMENT
Topic
Name
5+4 =