diff --git a/xil/boi.py b/xil/boi.py index 74cca19..6d39ac9 100644 --- a/xil/boi.py +++ b/xil/boi.py @@ -34,7 +34,7 @@ def get_boi_df(url: str = _BOI_URL) -> pd.DataFrame: with get_boi_url_response(url) as response: series = pd.read_json(response, typ="series", convert_dates=True) assert "exchangeRates" in series - df = pd.json_normalize(series.exchangeRates) # pylint: disable=no-member + df = pd.json_normalize(series.exchangeRates) df.columns = _IDX df = BaseDataFrameNormalizer(df).norm() return df diff --git a/xil/onezero.py b/xil/onezero.py index 6e3e7aa..c8cf032 100644 --- a/xil/onezero.py +++ b/xil/onezero.py @@ -21,7 +21,7 @@ def get_onezero_df(url: str = _ONEZERO_URL) -> pd.DataFrame: """Get One Zero bank exchange rates""" series = pd.read_json(url, typ="series") # series.generatingReportDateTime holds the date in YYYY-MM-DD format - df = pd.json_normalize(series.marketingRecords) # pylint: disable=no-member + df = pd.json_normalize(series.marketingRecords) df = df[df.fromCurrency == CurrencyCode.ILS] # remove data duplication df.drop(labels="fromCurrency", axis="columns", inplace=True) df.columns = _IDX diff --git a/xil/poalim.py b/xil/poalim.py index 927dcd8..f30bc47 100644 --- a/xil/poalim.py +++ b/xil/poalim.py @@ -44,7 +44,7 @@ def get_df(t: date | None = None, keep_last_date_only: bool = True) -> pd.DataFr is no specified date t, only the last available date's data is returned. """ df = pd.read_json(_get_url(t)) - if df.empty: # pylint: disable=no-member + if df.empty: return df df = df[_RELEVANT_COLS]