質問編集履歴
1
大変なことになっているエラーメッセージと、バージョンについて付け足しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,8 +8,29 @@
|
|
8
8
|
|
9
9
|
### 発生している問題・エラーメッセージ
|
10
10
|
|
11
|
+
Traceback (most recent call last):
|
11
|
-
|
12
|
+
File "c:\Users\c7not\OneDrive\デスクトップ\python_lesson\YouTube\secound.py", line 5, in <module>
|
13
|
+
iris_data=pd.read_csv("iris.csv", encoding="utf-8")
|
14
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\util\_decorators.py", line 311, in wrapper
|
15
|
+
return func(*args, **kwargs)
|
16
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 586, in read_csv
|
17
|
+
return _read(filepath_or_buffer, kwds)
|
18
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 482, in _read
|
19
|
+
parser = TextFileReader(filepath_or_buffer, **kwds)
|
20
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 811, in __init__
|
21
|
+
self._engine = self._make_engine(self.engine)
|
22
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 1040, in _make_engine
|
23
|
+
return mapping[engine](self.f, **self.options) # type: ignore[call-arg]
|
24
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\parsers\c_parser_wrapper.py", line 51, in __init__
|
25
|
+
self._open_handles(src, kwds)
|
26
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\parsers\base_parser.py", line 222, in _open_handles
|
27
|
+
self.handles = get_handle(
|
28
|
+
File "C:\Users\c7not\AppData\Local\Programs\Python\Python39\lib\site-packages\pandas\io\common.py", line 701, in get_handle
|
29
|
+
handle = open(
|
30
|
+
FileNotFoundError: [Errno 2] No such file or directory: 'iris.csv'
|
12
31
|
|
32
|
+
17行しか書いてないのに、バグってるんですかね・・・?
|
33
|
+
|
13
34
|
### 該当のソースコード
|
14
35
|
|
15
36
|
python
|
@@ -39,4 +60,5 @@
|
|
39
60
|
|
40
61
|
### 補足情報(FW/ツールのバージョンなど)
|
41
62
|
|
63
|
+
pandas=1.3.2
|
42
|
-
python
|
64
|
+
python-dateutil=2.8.2
|