Skip to content

Commit

Permalink
remove urllib dep, fix bug in mdd
Browse files Browse the repository at this point in the history
  • Loading branch information
achristie committed Aug 19, 2024
1 parent 5fd5644 commit c59d2c6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ requests = "^2.27.1"
tqdm = "^4.64.1"
typing-extensions = "^4.4.0"
tenacity = "^8.2.2"
urllib3 = "^1.26.15"
packaging = "^24.1"


Expand Down
2 changes: 1 addition & 1 deletion spgci/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def get_token() -> str:
auth: Union[AuthBase, None] = None

#: Version of the SPGCI Pkg
version = "0.0.42"
version = "0.0.43"

#: time to sleep between api calls
sleep_time = 0
Expand Down
3 changes: 2 additions & 1 deletion spgci/market_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def _convert_to_df(resp: Response) -> pd.DataFrame:
j = resp.json()
df = pd.json_normalize(j["results"], record_path=["data"], meta="symbol") # type: ignore

df.columns = df.columns.str.replace("change.", "", regex=True) # type: ignore
if len(df) > 0:
df.columns = df.columns.str.replace("change.", "", regex=True) # type: ignore

if "assessDate" in df.columns:
df["assessDate"] = pd.to_datetime(df["assessDate"]) # type: ignore
Expand Down

0 comments on commit c59d2c6

Please sign in to comment.