Olá tentei aqui essa solução mas ainda não deu certo segue o erro:
---------------------------------------------------------------------------
Error Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/python_parser.py in _next_iter_line(self, row_num)
799 assert self.data is not None
--> 800 line = next(self.data)
801 # for mypy
Error: unexpected end of data
During handling of the above exception, another exception occurred:
ParserError Traceback (most recent call last)
7 frames
<ipython-input-23-9257906a1a91> in <cell line: 1>()
----> 1 tmdb = pd.read_csv('tmdb_5000_movies.csv', engine= 'python')
2 tmdb.head()
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/readers.py in read_csv(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, date_format, dayfirst, cache_dates, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, doublequote, escapechar, comment, encoding, encoding_errors, dialect, on_bad_lines, delim_whitespace, low_memory, memory_map, float_precision, storage_options, dtype_backend)
946 kwds.update(kwds_defaults)
947
--> 948 return _read(filepath_or_buffer, kwds)
949
950
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/readers.py in _read(filepath_or_buffer, kwds)
615
616 with parser:
--> 617 return parser.read(nrows)
618
619
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/readers.py in read(self, nrows)
1746 columns,
1747 col_dict,
-> 1748 ) = self._engine.read( # type: ignore[attr-defined]
1749 nrows
1750 )
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/python_parser.py in read(self, rows)
248 ]:
249 try:
--> 250 content = self._get_lines(rows)
251 except StopIteration:
252 if self._first_chunk:
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/python_parser.py in _get_lines(self, rows)
1133
1134 while True:
-> 1135 new_row = self._next_iter_line(row_num=self.pos + rows + 1)
1136 rows += 1
1137
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/python_parser.py in _next_iter_line(self, row_num)
827 msg += ". " + reason
828
--> 829 self._alert_malformed(msg, row_num)
830 return None
831
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/python_parser.py in _alert_malformed(self, msg, row_num)
777 """
778 if self.on_bad_lines == self.BadLineHandleMethod.ERROR:
--> 779 raise ParserError(msg)
780 if self.on_bad_lines == self.BadLineHandleMethod.WARN:
781 base = f"Skipping line {row_num}: "
ParserError: unexpected end of data