Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas first row to header

see the difference between these two lines
#no header
data= pd.read_csv(path, header = None, delim_whitespace=True, error_bad_lines=False)
#with headers
data= pd.read_csv(path, delim_whitespace=True, error_bad_lines=False)
Source by www.stackvidhya.com #
 
PREVIOUS NEXT
Tagged: #pandas #row #header
ADD COMMENT
Topic
Name
9+1 =