mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-03 19:10:58 +08:00
Update __init__.py (#1213)
# BUGFIX: remove_fields_space() function will drop Feature object field
This commit is contained in:
@@ -518,7 +518,7 @@ def remove_fields_space(fields: [list, str, tuple]):
|
||||
"""
|
||||
if isinstance(fields, str):
|
||||
return fields.replace(" ", "")
|
||||
return [i.replace(" ", "") for i in fields if isinstance(i, str)]
|
||||
return [i.replace(" ", "") if isinstance(i, str) else str(i) for i in fields]
|
||||
|
||||
|
||||
def normalize_cache_fields(fields: [list, tuple]):
|
||||
|
||||
Reference in New Issue
Block a user