質問編集履歴
1
完全なtracebackの更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
print("buy")
|
32
32
|
|
33
|
-
elif (-splet > width)
|
33
|
+
elif (-splet > width) & (width > splet):
|
34
34
|
|
35
35
|
print('sell')
|
36
36
|
|
@@ -44,6 +44,36 @@
|
|
44
44
|
|
45
45
|
```python
|
46
46
|
|
47
|
+
ValueError Traceback (most recent call last)
|
48
|
+
|
49
|
+
<ipython-input-26-69476cce1849> in <module>()
|
50
|
+
|
51
|
+
4
|
52
|
+
|
53
|
+
5
|
54
|
+
|
55
|
+
----> 6 if width > splet:
|
56
|
+
|
57
|
+
7 print("buy")
|
58
|
+
|
59
|
+
8 elif (-splet > width) & (width > splet):
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
~\Anaconda3\lib\site-packages\pandas\core\generic.py in __nonzero__(self)
|
64
|
+
|
65
|
+
1119 raise ValueError("The truth value of a {0} is ambiguous. "
|
66
|
+
|
67
|
+
1120 "Use a.empty, a.bool(), a.item(), a.any() or a.all()."
|
68
|
+
|
69
|
+
-> 1121 .format(self.__class__.__name__))
|
70
|
+
|
71
|
+
1122
|
72
|
+
|
73
|
+
1123 __bool__ = __nonzero__
|
74
|
+
|
75
|
+
|
76
|
+
|
47
77
|
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
|
48
78
|
|
49
79
|
```
|