Skip to content

Commit

Permalink
Fixed circular dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hvass-Labs committed Apr 13, 2021
1 parent c44c052 commit 3575edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import os
import requests
from data_keys import *
from returns import total_return
import returns

########################################################################

Expand Down Expand Up @@ -344,7 +344,7 @@ def load_index_data(ticker, sales=True, book_value=True, dividend_TTM=True):
# Calculate the Total Return.
# The price-data from Yahoo does not contain the Total Return
# for stock indices because it does not reinvest dividends.
df[TOTAL_RETURN] = total_return(df=df)
df[TOTAL_RETURN] = returns.total_return(df=df)

# Load Sales Per Share data.
if sales:
Expand Down

0 comments on commit 3575edf

Please sign in to comment.