mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
fix bug of consider TURE as boolean instead of stock code
This commit is contained in:
@@ -234,7 +234,7 @@ class DumpDataBase:
|
||||
if isinstance(file_or_data, pd.DataFrame):
|
||||
if file_or_data.empty:
|
||||
return
|
||||
code = fname_to_code(file_or_data.iloc[0][self.symbol_field_name].lower())
|
||||
code = fname_to_code(str(file_or_data.iloc[0][self.symbol_field_name]).lower())
|
||||
df = file_or_data
|
||||
elif isinstance(file_or_data, Path):
|
||||
code = self.get_symbol_from_file(file_or_data)
|
||||
|
||||
Reference in New Issue
Block a user