mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 11:41:32 +00:00
[BugFix] Fix OECD Long Term Interest Rate (#6060)
* fix long term interest rate * pylint unused argument
This commit is contained in:
@@ -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()',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user