From 3575edf2830fb52a8874ebf7f369d13d85bf1541 Mon Sep 17 00:00:00 2001 From: Magnus Date: Tue, 13 Apr 2021 12:49:31 +0200 Subject: [PATCH] Fixed circular dependency. --- data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data.py b/data.py index 041d085..31a10c9 100644 --- a/data.py +++ b/data.py @@ -27,7 +27,7 @@ import os import requests from data_keys import * -from returns import total_return +import returns ######################################################################## @@ -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: