зеркало из https://github.com/microsoft/qlib.git
Update cache.py (#1329)
make D.feature([symbol], [Feature('close')], disk_cache=1) work correctly
This commit is contained in:
Родитель
fb5888be9e
Коммит
67d618d4b2
|
@ -471,7 +471,7 @@ class DatasetCache(BaseProviderCache):
|
||||||
not_space_fields = remove_fields_space(fields)
|
not_space_fields = remove_fields_space(fields)
|
||||||
data = data.loc[:, not_space_fields]
|
data = data.loc[:, not_space_fields]
|
||||||
# set features fields
|
# set features fields
|
||||||
data.columns = list(fields)
|
data.columns = [str(i) for i in fields]
|
||||||
return data
|
return data
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Загрузка…
Ссылка в новой задаче