Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add header in csv file in python

#header in csv file
import pandas as pd
import csv
df = pd.read_csv("file.csv", header=None)
df.to_csv("file.csv", header=["SEQUENCE"], index=False)#header added
df = pd.read_csv("file.csv")
df
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #add #header #csv #file #python
ADD COMMENT
Topic
Name
8+4 =