csv blank fields

MRAB python at mrabarnett.plus.com
Sat Jun 27 15:04:38 CEST 2009


Mag Gam wrote:
> I am using the csv package to parse a compressed .csv.gz file. So far
> its working perfectly fine but it fails when I have a missing value in
> on of the fields.
> 
> For example, I have this
> 
> Abc,def,,jkl
> 
> Is it possible to fill the missing column with a null?
> 
> I want,
> Abc,def,NULL,jkl
> 
What do you mean by "fails"? I get an empty string, which is what I'd
expect.



More information about the Python-list mailing list