Skip to content

Commit c493beb

Browse files
committed
Port fix from pandas-dev/pandas#55283 to cftime resample
1 parent f63ede9 commit c493beb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

xarray/core/resample_cftime.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545

4646
from xarray.coding.cftime_offsets import (
4747
BaseCFTimeOffset,
48-
Day,
4948
MonthEnd,
5049
QuarterEnd,
5150
Tick,
@@ -287,9 +286,7 @@ def _adjust_bin_edges(
287286
This is also required for daily frequencies longer than one day and
288287
year-end frequencies.
289288
"""
290-
is_super_daily = isinstance(freq, (MonthEnd, QuarterEnd, YearEnd)) or (
291-
isinstance(freq, Day) and freq.n > 1
292-
)
289+
is_super_daily = isinstance(freq, (MonthEnd, QuarterEnd, YearEnd))
293290
if is_super_daily:
294291
if closed == "right":
295292
datetime_bins = datetime_bins + datetime.timedelta(days=1, microseconds=-1)

0 commit comments

Comments
 (0)