You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plotting more than 10 assets (i.e. passing DataFrame instead of Series) will cause the index out of range error because of not enough predefined colors
Plotting more than 10 assets (i.e. passing DataFrame instead of Series) will cause the index out of range error because of not enough predefined colors
Code Tracing
quantstats/quantstats/reports.py
Lines 215 to 226 in fa0a91a
quantstats/quantstats/_plotting/wrappers.py
Lines 407 to 424 in fa0a91a
Main Issue Part
quantstats/quantstats/_plotting/core.py
Lines 330 to 333 in fa0a91a
quantstats/quantstats/_plotting/core.py
Lines 58 to 92 in fa0a91a
Reproducible Code
For the too less sample (days) data will cause another index error
IndexError: index 0 is out of bounds for axis 0 with size 0
Since we only have 10 days here, the default rolling period 126 which is much larger than it => returns got all NaN
quantstats/quantstats/stats.py
Lines 237 to 243 in fa0a91a
All NaN results will be dropped, thus try to set the title based on an empty DataFrame
quantstats/quantstats/_plotting/core.py
Lines 658 to 681 in fa0a91a
This works fine...
The text was updated successfully, but these errors were encountered: