From 9206bb70e89eaf882d5df7b82a39ee17cb292d21 Mon Sep 17 00:00:00 2001 From: opnagroup <142366287+opnagroup@users.noreply.github.com> Date: Thu, 13 Mar 2025 19:32:37 -0400 Subject: [PATCH] Update __init__.py Change "S" to "s" in pd.Timedelta(2, "S") to be compatible with pandas 3.0 --- 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]