mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-18 05:18:09 +00:00
fix(Linter): ran
This commit is contained in:
@@ -4,7 +4,11 @@ from feature_extractors.utils import get_close_low_high
|
|||||||
|
|
||||||
|
|
||||||
def feature_debug_future_lookahead(df: pd.DataFrame, period: int) -> pd.Series:
|
def feature_debug_future_lookahead(df: pd.DataFrame, period: int) -> pd.Series:
|
||||||
return df["returns"].rolling(window=pd.api.indexers.FixedForwardWindowIndexer(window_size=period)).sum()
|
return (
|
||||||
|
df["returns"]
|
||||||
|
.rolling(window=pd.api.indexers.FixedForwardWindowIndexer(window_size=period))
|
||||||
|
.sum()
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def feature_lag(df: pd.DataFrame, period: int) -> pd.Series:
|
def feature_lag(df: pd.DataFrame, period: int) -> pd.Series:
|
||||||
|
|||||||
Reference in New Issue
Block a user