Code:
# newline1=line.replace('.,','')
# newline2=newline1.replace(',.\n','') #incase last value is a period
Your second replace deletes the field and mashes the rows together screwing the db. Try instead....
Code:
# newline1=line.replace('.,','')
# newline2=newline1.replace(',.\n',',0.0\n') #incase last value is a period
Comment