[BugFix] Fix OECD Long Term Interest Rate (#6060)

* fix long term interest rate

* pylint unused argument
This commit is contained in:
Danglewood
2024-02-09 01:56:38 -08:00
committed by GitHub
parent 930004c479
commit f08b0a6082
3 changed files with 7 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ async def short_term_interest_rate(
@router.command(
model="STIR",
model="LTIR",
exclude_auto_examples=True,
examples=[
'obb.economy.long_term_interest_rate(country="all", frequency="quarterly").to_df()',

View File

@@ -1,5 +1,7 @@
"""OECD Long Term Interest Rate Rate Data."""
# pylint: disable=unused-argument
import re
from datetime import date, timedelta
from typing import Any, Dict, List, Literal, Optional, Union
@@ -152,7 +154,7 @@ class OECDLTIRFetcher(Fetcher[OECDLTIRQueryParams, List[OECDLTIRData]]):
)
)
data["country"] = data["country"].map(ltir_mapping)
data = data.fillna("N/A").replace("N/A", None)
return data.to_dict(orient="records")
@staticmethod

View File

@@ -1,5 +1,7 @@
"""OECD Short Term Interest Rate Rate Data."""
# pylint: disable=unused-argument
import re
from datetime import date, timedelta
from typing import Any, Dict, List, Literal, Optional, Union
@@ -152,7 +154,7 @@ class OECDSTIRFetcher(Fetcher[OECDSTIRQueryParams, List[OECDSTIRData]]):
)
)
data["country"] = data["country"].map(stir_mapping)
data = data.fillna("N/A").replace("N/A", None)
return data.to_dict(orient="records")
@staticmethod