8000 python3 跑 alpha075 报错 · Issue #6 · wukan1986/ta_cn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
python3 跑 alpha075 报错 #6
Open
@0xhhh321321

Description

@0xhhh321321
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0