mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-16 04:18:07 +00:00
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:
+2
-2
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user