What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-28 22:27:02
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 Add solution