ranaroussi / quantstats

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

Wrong result in montly return heatmap #288

Open fabrosky opened 1 year ago

fabrosky commented 1 year ago

https://github.com/ranaroussi/quantstats/blob/fa0a91a42400978bcc95f5f2fb2cf20e6f7af56c/quantstats/_plotting/wrappers.py#L989

This line of code causes a wrong result on the html output of quantstats.reports.html() in the visualized heatmap of the section "Strategy - Montly Active Returns (%)" and going into <div id="monthly_heatmap">{{monthly_heatmap}}</div> of the html template "report.html". It should be removed.