refactor(Project): move out load_data to utils, rename fetch_data to run_fetch_data, got classifiers to work (#38)

This commit is contained in:
Mark Aron Szulyovszky
2021-12-17 17:41:50 +01:00
committed by GitHub
parent cc7061b456
commit 0963df2087
94 changed files with 9704 additions and 84787 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
from typing import Literal
import pandas as pd
import numpy as np
def get_first_valid_return_index(series: pd.Series) -> int:
first_nonzero_return = np.where(np.logical_and(series != 0, np.logical_not(np.isnan(series))))[0][0]
return first_nonzero_return
return np.where(np.logical_and(series != 0, np.logical_not(np.isnan(series))))[0][0]