Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set risk-free rate ( rf ) when calling df_prices.calc_stats() ? #75

Open
ahotrod opened this issue Apr 11, 2019 · 2 comments
Open

Comments

@ahotrod
Copy link

ahotrod commented Apr 11, 2019

The output of

df_prices.calc_stats()

reports a rf = 0. I'd like to have

df_prices.calc_stats()

include a rf in the calculations. I don't see how to set rf. I've also tried:

ffn.GroupStats(*[df_prices[x] for x in df_prices.columns]).set_riskfree_rate(rf = 1.5)

without success.

@jaNGOB
Copy link

jaNGOB commented Mar 28, 2020

I also just had the same problem and figured it out.

perf = pd.DataFrame(df).calc_stats()
perf.set_riskfree_rate(0.011)
perf.display()

@fedeheisemberg
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants