8000 `dask.take` brings different results with `numpy.take` · Issue #11984 · dask/dask · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
dask.take brings different results with numpy.take #11984
Open
@apiqwe

Description

@apiqwe

Describe the issue:
I found that dask.take will bring different results with numpy.take as follow.
I think this may be a bug in dask.

Minimal Complete Verifiable Example:

import numpy as np
import dask.array as da

print(np.take([10,20],[True,False]))
print(da.take(da.array([10, 20]), da.array([True, False])).compute())

Output:

[20 10]
[10]

Anything else we need to know?:

Environment:

  • Dask version: 2025.4.1
  • Python version: 3.10.0
  • Operating System: Linux 6.11.0-25-generic Ubuntu 24.04.1 x86_64 GNU/Linux
  • Install method (conda, pip, source): pip
  • Numpy version: 2.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageNeeds a response from a contributor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0