ranaroussi / quantstats

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

ufunc 'isfinite' not supported for the input types #283

Open alexsong33 opened 1 year ago

alexsong33 commented 1 year ago

File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/ma/core.py", line 2360, in masked_invalid return masked_where(~(np.isfinite(getdata(a))), a, copy=copy) TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''