1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

Fix warning in processor.py. (#1386)

* Fix warning in processor.py.

* Remove comment.
This commit is contained in:
Chia-hung Tai
2022-12-08 23:47:05 +08:00
committed by GitHub
parent 577923a9f0
commit ea10da32ba

View File

@@ -313,7 +313,7 @@ class CSZScoreNorm(Processor):
self.fields_group = [self.fields_group]
for g in self.fields_group:
cols = get_group_columns(df, g)
df[cols] = df[cols].groupby("datetime").apply(self.zscore_func)
df[cols] = df[cols].groupby("datetime", group_keys=False).apply(self.zscore_func)
return df