Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add new column in csv file using pandas

import pandas as pd
csv_input = pd.read_csv('input.csv')
csv_input['Berries'] = csv_input['Name']
csv_input.to_csv('output.csv', index=False)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #column #csv #file #pandas
ADD COMMENT
Topic
Name
3+6 =