UnsupportedFunctionCall: numpy operations are not valid with resample.
Is this just me in google colab or is this an issue for others?
[/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
Have the same problem
It was issued by brunch in "Issues" https://github.com/ranaroussi/quantstats/pull/375
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
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
what if i cant downgrade pandas?
what if i cant downgrade pandas?
for me, downgrading numpy only worked
Same issue here
Closing this issue as it's older than 2025 and has been specifically addressed in release 0.0.64. The pandas resampling compatibility issues have been resolved with the comprehensive compatibility layer implementation.