Calling read(nbytes) on source failed code example
Example: Error tokenizing data. C error: Calling read(nbytes) on source failed. Try engine='python'.
try:
df = pd.read_csv(os.path.join(filePath, fileName),
sep='|', compression = 'gzip', dtype='unicode', error_bad_lines=False)
except CParserError:
print "Something wrong the file"
return df