質問編集履歴

2

print(df.columns)の結果を記載。

2020/02/16 12:13

投稿

emix
emix

スコア6

test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,11 @@
45
45
 
46
46
 
47
47
  ```
48
+
49
+ ```Python
50
+
51
+ print(df.columns)
52
+
53
+ ###結果 Index(['商品番号', '売上(店舗)'], dtype='object')
54
+
55
+ ```

1

エラーメッセージを記載。

2020/02/16 12:13

投稿

emix
emix

スコア6

test CHANGED
File without changes
test CHANGED
@@ -17,3 +17,31 @@
17
17
  df.query("売上(店舗) == 0")
18
18
 
19
19
  ```
20
+
21
+
22
+
23
+ 下記のようなエラーメッセージが表示されています。
24
+
25
+
26
+
27
+ ```ここに言語を入力
28
+
29
+ Traceback (most recent call last):
30
+
31
+ File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pandas/core/computation/scope.py", line 188, in resolve
32
+
33
+ return self.resolvers[key]
34
+
35
+ File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/collections/__init__.py", line 891, in __getitem__
36
+
37
+ return self.__missing__(key) # support subclasses that define __missing__
38
+
39
+ File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/collections/__init__.py", line 883, in __missing__
40
+
41
+ raise KeyError(key)
42
+
43
+ KeyError: '売上'
44
+
45
+
46
+
47
+ ```