Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] cudf.DataFrame.ewm.mean returns TypeError: Implicit conversion to a host NumPy array via __array__ is not allowed #16847

Open
Matt711 opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Python Affects Python cuDF API.

Comments

@Matt711
Copy link
Contributor

Matt711 commented Sep 19, 2024

Describe the bug
cudf.DataFrameewm.mean raises a TypeError

TypeError: Implicit conversion to a host NumPy array via __array__ is not allowed, To explicitly construct a GPU matrix, consider using .to_cupy()
To explicitly construct a host matrix, consider using .to_numpy().

Steps/Code to reproduce bug

In [1]: import cudf

In [2]: cdf=cudf.DataFrame(range(10))

In [3]: cdf.ewm(0.5).mean() # TypeError

Expected behavior
It should return the same result as Pandas.

@Matt711 Matt711 added bug Something isn't working Python Affects Python cuDF API. labels Sep 19, 2024
@Matt711 Matt711 self-assigned this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Python Affects Python cuDF API.
Projects
None yet
Development

No branches or pull requests

1 participant