Skip to content

Commit

Permalink
Delete redundant copy() code to speed up (#1732)
Browse files Browse the repository at this point in the history
Delete redundant copy() code to speed up

Co-authored-by: Linlang Lv (iSoftStone Information) <[email protected]>
  • Loading branch information
playfund and Linlang Lv (iSoftStone Information) authored May 17, 2024
1 parent 6ed83f7 commit 2ae4be4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion qlib/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2ae4be4

Please sign in to comment.