1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-02 10:31:00 +08:00

Delete redundant copy() code to speed up (#1732)

Delete redundant copy() code to speed up

Co-authored-by: Linlang Lv (iSoftStone Information) <v-lvlinlang@microsoft.com>
This commit is contained in:
playfund
2024-05-17 18:45:07 +08:00
committed by GitHub
parent 6ed83f7c04
commit 2ae4be426a

View File

@@ -536,7 +536,6 @@ class DatasetProvider(abc.ABC):
"""
if len(fields) == 0:
raise ValueError("fields cannot be empty")
fields = fields.copy()
column_names = [str(f) for f in fields]
return column_names