Skip to content
Snippets Groups Projects
Commit ff99639f authored by Peter Swain's avatar Peter Swain
Browse files

fix(dataloader): selects groups in passed df

parent 3f20c2de
No related branches found
No related tags found
No related merge requests found
......@@ -651,7 +651,9 @@ class dataloader:
print(group, "not recognised")
return None, None
else:
wdf = df.pivot(columns="time", index="id", values=signal)
wdf = df[df.group == group].pivot(
columns="time", index="id", values=signal
)
time = wdf.columns.to_numpy()
# each column is a time series
values = wdf.to_numpy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment