Skip to content

Is there a way to export chart data to a dataframe #53

Closed Answered by santoshlite
Jordan-Eckowitz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,

First, sorry for the late reply!

Ok, so there are some values you could get. For example, if you do:

empyrial.returns = returns  #get dataframe of the returns of your portfolio
empyrial.creturns = creturns  #get dataframe of the cumulative returns of your portfolio
empyrial.benchmark = benchmark  #get dataframe of the returns of your benchmark

Now, that you collected these dataframes, you can exploit them to get charts. However, if you want to get the same charts as the one in the report we offer, I advise you to use Quantstats (https://github.com/ranaroussi/quantstats). We use this to get charts from our dataframes. You can get these charts by giving as input the return dataframe.

G…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by santoshlite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants