0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SyntaxError: (unicode error) 'utf-8' codec can't decode bytes in position 0-1: unexpected end of data

Posted at

突然、pandas のエラーが発生した。
SyntaxError: (unicode error) 'utf-8' codec can't decode bytes in position 0-1: unexpected end of data

pip uninstall pandas
pip install pandas

で対応した。

原因は分かりませんが、突然のエラーでした。参考までに。

Traceback (most recent call last):
File ".\RealTime_object_detect.py", line 5, in
import pandas as pd
File "C:\Users\e13736\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas_init_.py", line 51, in
from pandas.core.api import (
File "C:\Users\e13736\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\api.py", line 31, in
from pandas.core.groupby import Grouper, NamedAgg
File "C:\Users\e13736\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\groupby_init_.py", line 1, in
from pandas.core.groupby.generic import DataFrameGroupBy, NamedAgg, SeriesGroupBy
File "C:\Users\e13736\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\groupby\generic.py", line 65, in
File "C:\Users\e13736\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\frame.py", line 119, in
from pandas.core import algorithms, common as com, generic, nanops, ops
File "C:\Users\e13736\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\generic.py", line 2800
"""
^
SyntaxError: (unicode error) 'utf-8' codec can't decode bytes in position 0-1: unexpected end of data

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?