ranaroussi / quantstats

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

How can i save the metrics as a dataframe #293

Closed MuslemRahimi closed 1 year ago

MuslemRahimi commented 1 year ago

My code looks like this:

df = qs.reports.metrics(stock, 'SPY', mode='full')

and i want to save it as a pandas Dataframe.

Any help is much appreciated

viniciusbaca commented 1 year ago

Set the display parameter to False: df = qs.reports.metrics(stock, 'SPY', mode='full', display=False)