import pandas as pd
import numpy as np
gff_file = 'epicapture_gene_candidates.gff3'
col_dtypes = {'seqid':'str','source':'str','type':'str','start':'int','end':'int','score':'str','strand':'str','phase':'str','attributes':'str'}
col_names = ['seqid','source','type','start','end','score','strand','phase','attributes']
gff = pd.read_table(gff_file, sep='\t', comment='#', dtype=col_dtypes, names=col_names)
gff.head()
http://stackoverflow.com/questions/22100130/pandas-replace-multiple-values-one-column
newgff = gff.replace({'start' : { 0 : 1}})
newgff.to_csv('epicapture_candidates.gff3', sep='\t', index=False, header=False)
newgff.head()