Skip to content

regression: NotImplementedError: operator '*' not implemented for bool dtypes #7210

Closed
@yarikoptic

Description

@yarikoptic

seemed to work just fine (with 0.13.1) and I do not see why it should not if you are decorating numpy arrays here:

  File "/home/neurodebian/proj/numpy-vbench/vbench/vbench/analysis.py", line 83, in __call__
    Tts, Tps = ss.ttest_1samp(test_samples.timing, results.timing)
  File "/usr/lib/python2.7/dist-packages/scipy/stats/stats.py", line 2887, in ttest_1samp
    t = np.where((d==0)*(v==0), 1.0, t) #define t=0/0 = 1, identical mean, var
  File "/home/neurodebian/deb/gits/pkg-exppsy/pandas/pandas/core/ops.py", line 505, in wrapper
    return left._constructor(wrap_results(na_op(lvalues, rvalues)),
  File "/home/neurodebian/deb/gits/pkg-exppsy/pandas/pandas/core/ops.py", line 445, in na_op
    raise_on_error=True, **eval_kwargs)
  File "/home/neurodebian/deb/gits/pkg-exppsy/pandas/pandas/computation/expressions.py", line 196, in evaluate
    _bool_arith_check(op_str, a, b)
  File "/home/neurodebian/deb/gits/pkg-exppsy/pandas/pandas/computation/expressions.py", line 177, in _bool_arith_check
    "dtypes" % op_str)
NotImplementedError: operator '*' not implemented for bool dtypes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Error ReportingIncorrect or improved errors from pandas

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions