Skip to content

Commit 1abda53

Browse files
authored
Merge pull request #291 from t-jakubek/bug/pandas_timedelta_futurewarning
Address FutureWarning: 'H' is deprecated and will be removed in a future version. Please use 'h' instead of 'H'.
2 parents 2f0eba8 + 099e958 commit 1abda53

File tree

1 file changed

+1
-1
lines changed
  • plotly_resampler/figure_resampler

1 file changed

+1
-1
lines changed

plotly_resampler/figure_resampler/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def round_td_str(td: pd.Timedelta) -> str:
173173
[`timedelta_to_str`][figure_resampler.utils.timedelta_to_str]
174174
175175
"""
176-
for t_s in ("D", "H", "min", "s", "ms", "us", "ns"):
176+
for t_s in ("D", "h", "min", "s", "ms", "us", "ns"):
177177
if td > 0.95 * pd.Timedelta(f"1{t_s}"):
178178
return timedelta_to_str(td.round(t_s))
179179

0 commit comments

Comments
 (0)