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

Merge pull request #347 from 2young-2simple-sometimes-naive/patch-1

fix bug of consider TURE as boolean instead of stock code
This commit is contained in:
you-n-g
2021-03-17 12:08:57 +08:00
committed by GitHub

View File

@@ -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)