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

Merge pull request #372 from zhupr/data_storage

add data storage
This commit is contained in:
you-n-g
2021-05-26 14:30:46 +08:00
committed by GitHub
11 changed files with 1070 additions and 55 deletions

View File

@@ -120,7 +120,7 @@ class DumpDataBase:
else:
df = file_or_df
if df.empty or self.date_field_name not in df.columns.tolist():
_calendars = pd.Series()
_calendars = pd.Series(dtype=np.float32)
else:
_calendars = df[self.date_field_name]