Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Fix pandas 2.2.0 warning. Don't wait for PR to be accepted in main repo.
  • Loading branch information
m1pro authored Sep 17, 2024
1 parent 57a73fc commit 5d762e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yahooquery/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5d762e9

Please sign in to comment.