I have a csv
file encoded in ANSI
which I'm formatting with python
pandas
on a non ANSI
machine. The resulting dataframe
('df1') has some garbage in it.
Expirydate food color
20150713 banana yellow
20150714 steak brown
??? ???(g?0) ???
I am trying to remove the 'garbage' line using this:
df1[df1.Expirydate.str.contains("?")==False]
but am getting this error:
sre_constants.error: nothing to repeat
Can anybody help? It would be most appreciated!