From 5d762e9eb5efea00d89bdb4719c5d471a2784157 Mon Sep 17 00:00:00 2001 From: m1pro <80698487+m1pro@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:40:21 +0300 Subject: [PATCH] Update __init__.py Fix pandas 2.2.0 warning. Don't wait for PR to be accepted in main repo. --- yahooquery/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yahooquery/utils/__init__.py b/yahooquery/utils/__init__.py index 8fad8ac..52cb64d 100644 --- a/yahooquery/utils/__init__.py +++ b/yahooquery/utils/__init__.py @@ -1467,7 +1467,7 @@ def _get_daily_index(data, index_utc, adj_timezone): has_live_indice = False else: last_trade = pd.Timestamp.fromtimestamp(timestamp, tz="UTC") - has_live_indice = index_utc[-1] >= last_trade - pd.Timedelta(2, "S") + has_live_indice = index_utc[-1] >= last_trade - pd.Timedelta(2, "s") if has_live_indice: # remove it live_indice = index_utc[-1]