I am parsing a csv data file with comma as the delimiter. The file mostly contains integers but also some decimal numbers/floats.
It has some missing values, which are marked by a period ("."). In order to insert into a database, I want to replace the missing value periods, but NOT the decimal periods.
With python's regex flavor and the re.sub construct applied to each line read as a string, can someone help what the pattern might be for this?
Best,
Aksel
It has some missing values, which are marked by a period ("."). In order to insert into a database, I want to replace the missing value periods, but NOT the decimal periods.
With python's regex flavor and the re.sub construct applied to each line read as a string, can someone help what the pattern might be for this?
Best,
Aksel
Comment