mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-12 15:26:54 +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:
@@ -234,7 +234,7 @@ class DumpDataBase:
|
|||||||
if isinstance(file_or_data, pd.DataFrame):
|
if isinstance(file_or_data, pd.DataFrame):
|
||||||
if file_or_data.empty:
|
if file_or_data.empty:
|
||||||
return
|
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
|
df = file_or_data
|
||||||
elif isinstance(file_or_data, Path):
|
elif isinstance(file_or_data, Path):
|
||||||
code = self.get_symbol_from_file(file_or_data)
|
code = self.get_symbol_from_file(file_or_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user