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

UnsupportedFunctionCall: numpy operations are not valid with resample. #377

Open
awfales opened this issue Nov 2, 2024 · 4 comments
Open

Comments

@awfales
Copy link

awfales commented Nov 2, 2024

Is this just me in google colab or is this an issue for others?

image

[/usr/local/lib/python3.10/dist-packages/pandas/compat/numpy/function.py](https://localhost:8080/#) in validate_resampler_func(method, args, kwargs)
    374     if len(args) + len(kwargs) > 0:
    375         if method in RESAMPLER_NUMPY_OPS:
--> 376             raise UnsupportedFunctionCall(
    377                 "numpy operations are not valid with resample. "
    378                 f"Use .resample(...).{method}() instead"

UnsupportedFunctionCall: numpy operations are not valid with resample. Use .resample(...).sum() instead
@JomaDeveloper
Copy link

Have the same problem

@JomaDeveloper
Copy link

It was issued by brunch in "Issues" #375

@devanshu125
Copy link

temporary fix is to use the previous version pip install quantstats==0.0.62. I could resolve the issue using this and I am currently using pandas==2.0.2 and numpy==1.26.4

@jitdarkfighter
Copy link

temporary fix is to use the previous version pip install quantstats==0.0.62. I could resolve the issue using this and I am currently using pandas==2.0.2 and numpy==1.26.4

thankss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants