Answers for "ParserError: unexpected end of data"

0

ParserError: unexpected end of data

For me adding this fixed it:

error_bad_lines=False

It just skips the last line. So instead of

reviews = pd.read_csv('br.csv', engine='python', encoding='utf-8')

reviews = pd.read_csv('br.csv', engine='python', encoding='utf-8', error_bad_lines=False)
Posted by: Guest on September-24-2020

Code answers related to "ParserError: unexpected end of data"

Browse Popular Code Answers by Language