Open
Description
Traceback (most recent call last):
File "/Users/xxx/code/futudata/main.py", line 57, in <module>
ret = l.alpha_075(**kwargs_l)
File "/Users/xxx/.conda/envs/futudata/lib/python3.10/site-packages/ta_cn/alphas/test191.py", line 505, in alpha_075
return COUNT((CLOSE > OPEN) & (BANCHMARKINDEXCLOSE < BANCHMARKINDEXOPEN), 50) / COUNT(
File "/Users/xxx/.conda/envs/futudata/lib/python3.10/site-packages/pandas/core/ops/common.py", line 70, in new_method
return method(self, other)
File "/Users/xxx/.conda/envs/futudata/lib/python3.10/site-packages/pandas/core/arraylike.py", line 124, in __truediv__
return self._arith_method(other, operator.truediv)
File "/Users/xxx/.conda/envs/futudata/lib/python3.10/site-packages/pandas/core/series.py", line 5639, in _arith_method
return base.IndexOpsMixin._arith_method(self, other, op)
File "/Users/xxx/.conda/envs/futudata/lib/python3.10/site-packages/pandas/core/base.py", line 1295, in _arith_method
result = ops.arithmetic_op(lvalues, rvalues, op)
File "/Users/xxx/.conda/envs/futudata/lib/python3.10/site-packages/pandas/core/ops/array_ops.py", line 220, in arithmetic_op
_bool_arith_check(op, left, right)
File "/Users/xxx/.conda/envs/futudata/lib/python3.10/site-packages/pandas/core/ops/array_ops.py", line 520, in _bool_arith_check
raise NotImplementedError(
NotImplementedError: operator 'truediv' not implemented for bool dtypes
Metadata
Metadata
Assignees
Labels
No labels