From 6042f88ae7997f11803d75e1373485dad099c4bf Mon Sep 17 00:00:00 2001 From: wony <5218603+wony-zheng@users.noreply.github.com> Date: Wed, 26 Oct 2022 14:10:20 +0800 Subject: [PATCH] Update cache.py make D.feature([symbol], [Feature('close')], disk_cache=1) work correctly --- qlib/data/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/data/cache.py b/qlib/data/cache.py index fc53aab3d34..7c692377ad6 100644 --- a/qlib/data/cache.py +++ b/qlib/data/cache.py @@ -471,7 +471,7 @@ def cache_to_origin_data(data, fields): 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