mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
Update cache.py (#1329)
make D.feature([symbol], [Feature('close')], disk_cache=1) work correctly
This commit is contained in:
@@ -471,7 +471,7 @@ class DatasetCache(BaseProviderCache):
|
||||
not_space_fields = remove_fields_space(fields)
|
||||
data = data.loc[:, not_space_fields]
|
||||
# set features fields
|
||||
data.columns = list(fields)
|
||||
data.columns = [str(i) for i in fields]
|
||||
return data
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user