1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-10 06:20:57 +08:00

black format

This commit is contained in:
bxdd
2021-01-26 07:33:50 +00:00
parent 8e9ca22b07
commit 58616fced9
3 changed files with 10 additions and 13 deletions

View File

@@ -57,7 +57,7 @@ class HighFreqNorm(Processor):
part_values[slice3] = -3.5
# print("start_call_feature_reshape")
idx = df_features.index.droplevel("datetime").drop_duplicates()
idx.set_names(['instrument', 'datetime'], inplace=True)
idx.set_names(["instrument", "datetime"], inplace=True)
feat = df_values[:, [0, 1, 2, 3, 4, 10]].reshape(-1, 6 * 240)
feat_1 = df_values[:, [5, 6, 7, 8, 9, 11]].reshape(-1, 6 * 240)
df_new_features = pd.DataFrame(