ranaroussi / quantstats

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

The order of 'Strategy' and 'Benchmark' Columns in the Report #299

Open tongNJ opened 1 year ago

tongNJ commented 1 year ago

@ranaroussi Firstly, thank you so much for the amazing package, it's all very powerful and convinent when generating fund statistics.

However, when i use the "qs.reports.html(stock, 'SPY')" code to generate report, the first column is the Benchmark (SPY) and the second column is the Stock (META in your case). In usual practice, we would normally put the Strategy in the first column and then followed by the Benchmark statistics. Is there any way (or any key word argument) that we can use to alter the order of these two columns?

Much appreciated. best, Shantong