ranaroussi / quantstats

Portfolio analytics for quants, written in Python
Apache License 2.0
4.96k stars 858 forks source link

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

Open awfales opened 1 week ago

awfales commented 1 week ago

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 commented 1 week ago

Have the same problem

JomaDeveloper commented 1 week ago

It was issued by brunch in "Issues" https://github.com/ranaroussi/quantstats/pull/375