mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 00:06:58 +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:
@@ -536,7 +536,6 @@ class DatasetProvider(abc.ABC):
|
|||||||
"""
|
"""
|
||||||
if len(fields) == 0:
|
if len(fields) == 0:
|
||||||
raise ValueError("fields cannot be empty")
|
raise ValueError("fields cannot be empty")
|
||||||
fields = fields.copy()
|
|
||||||
column_names = [str(f) for f in fields]
|
column_names = [str(f) for f in fields]
|
||||||
return column_names
|
return column_names
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user