Skip to content

Commit

Permalink
Merge pull request #185 from tsugumi-sys/fix/wiki-sp500-columns
Browse files Browse the repository at this point in the history
fix invalid wiki500 data
  • Loading branch information
tsugumi-sys authored Jul 7, 2024
2 parents 2f15f49 + f9a0e5a commit 5d3987d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stocklake/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present tsugumi-sys <[email protected]>
#
# SPDX-License-Identifier: MIT
__version__ = "0.0.13"
__version__ = "0.0.14"
6 changes: 3 additions & 3 deletions stocklake/wiki_sp500/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def download(self) -> List[RawWikiSP500Data]:
symbol_data_content["company"] = self._replace_new_line_code(
symbol_data.text.replace("\n", "")
)
if td_count == 3:
if td_count == 2:
symbol_data_content["sector"] = self._replace_new_line_code(
symbol_data.text.replace("\n", "")
)
if td_count == 4:
if td_count == 3:
symbol_data_content["industry"] = self._replace_new_line_code(
symbol_data.text.replace("\n", "")
)
if td_count == 5:
if td_count == 4:
symbol_data_content["headquarters"] = self._replace_new_line_code(
symbol_data.text.replace("\n", "")
)
Expand Down

0 comments on commit 5d3987d

Please sign in to comment.