Question Details

No question body available.

Tags

python

Answers (1)

Accepted Answer Available
Accepted Answer
August 16, 2025 Score: -1 Rep: 148,927 Quality: High Completeness: 70%

It seems you already found issue on repo

ValueError: The truth value of a Series is ambiguous. in 0.0.72 · Issue #463 · ranaroussi/quantstats

It seems code has some mistake and you may have to wait for new version with fix.

Or you may use older version. It works for me with 0.0.70 but not 0.0.71,0.0.72, 0.0.73

pip install --upgrade quantstats==0.0.70

EDIT:

Information for others:

As @DameSkytower informed in comment problem was send to author and he created new version 0.0.74 which finally resolved this problem.

Details: github.com/ranaroussi/quantstats/issues/…