issue in handling CSV data

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Sep 10 04:06:36 EDT 2019


Sharan Basappa wrote:
> Now, if you see the print after getting the data, it looks like this:
> 
> ############################## 
> [['"\t"81' '"\t5c'] 
>  ['"\t"04' '"\t11'] 
>  ['"\t"e1' '"\t17'] 
>  ['"\t"6a' '"\t6c'] 
>  ['"\t"53' '"\t69'] 
>  ['"\t"98' '"\t87'] 
>  ['"\t"5c' '"\t4b'] 
> ############################## 

But now you have weird things such as unmatched single quotes.

It seems that whichever way you try to interpret it -- tab
delimited or comma delimited -- it doesn't entirely make sense.
That leads me to believe it has been corrupted somehow.

-- 
Greg



More information about the Python-list mailing list