Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Column names reading csv file python

import pandas as pd
df = pd.read_csv('file.csv', names=['a', 'b', 'c'], header=None)
df.rename(columns = {'a':'A', 'b':'B', 'c':'C'}, inplace = True) 
df.to_csv('file.csv')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Column #names #reading #csv #file #python
ADD COMMENT
Topic
Name
2+7 =