mirror of
https://github.com/webclinic017/drift.git
synced 2026-08-14 19:38:09 +00:00
fix(Labeling): use X.loc instead of X.filter, remove Nan from event_start_times
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ def label_data(
|
||||
"% of overlapping events",
|
||||
)
|
||||
|
||||
X = X.filter(items=events.index, axis=0)
|
||||
X = X.loc[events.index]
|
||||
y = events["label"]
|
||||
forward_returns = events["returns"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user