Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshlite authored Feb 8, 2024
1 parent 2c2bc41 commit 2ba5b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/empyrial/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def graph_allocation(my_portfolio):


def empyrial(my_portfolio, rf=0.0, sigma_value=1, confidence_value=0.95, report=False, filename="empyrial_report.pdf"):
if my_portfolio.rebalance != None:
if isinstance(my_portfolio.rebalance, pd.DataFrame):
# we want to get the dataframe with the dates and weights
rebalance_schedule = my_portfolio.rebalance

Expand Down

0 comments on commit 2ba5b63

Please sign in to comment.