From 9bbc9b642aed985e6142c76ee90df09f9e9261a8 Mon Sep 17 00:00:00 2001 From: playfund Date: Wed, 10 Jan 2024 09:34:32 +0800 Subject: [PATCH] Delete redundant copy() code to speed up Delete redundant copy() code to speed up --- qlib/data/data.py | 1 - 1 file changed, 1 deletion(-) diff --git a/qlib/data/data.py b/qlib/data/data.py index 116827f232..1b1353ee4e 100644 --- a/qlib/data/data.py +++ b/qlib/data/data.py @@ -536,7 +536,6 @@ def get_column_names(fields): """ if len(fields) == 0: raise ValueError("fields cannot be empty") - fields = fields.copy() column_names = [str(f) for f in fields] return column_names