Skip to content

Commit 099e958

Browse files
committed
Align units with pandas.Timedelta API
1 parent 2f0eba8 commit 099e958

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)