Fix types for numpy 1.20.0 upgrade

This commit is contained in:
Matthias
2021-01-31 11:21:23 +01:00
parent 92721db583
commit 5724371a4f
4 changed files with 6 additions and 39 deletions

View File

@@ -312,7 +312,7 @@ def calculate_market_change(data: Dict[str, pd.DataFrame], column: str = "close"
end = df[column].dropna().iloc[-1]
tmp_means.append((end - start) / start)
return np.mean(tmp_means)
return float(np.mean(tmp_means))
def combine_dataframes_with_mean(data: Dict[str, pd.DataFrame],