I have read a csv file in which there are many values which have been read as unicode. While doing my data processing, I want to skip these values. Existing Code:
if aString.encode('ascii', 'ignore') == b'':
continue
The same code is working when i am trying this in python environment. But it is not working in script(.py file).