Skip to content

Commit

Permalink
Merge pull request #347 from 2young-2simple-sometimes-naive/patch-1
Browse files Browse the repository at this point in the history
fix bug of consider TURE as boolean instead of stock code
  • Loading branch information
you-n-g committed Mar 17, 2021
2 parents 023c1fe + 5520463 commit 4de628c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dump_bin.py
Expand Up @@ -234,7 +234,7 @@ def _dump_bin(self, file_or_data: [Path, pd.DataFrame], calendar_list: List[pd.T
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)
Expand Down

0 comments on commit 4de628c

Please sign in to comment.