File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ def __init__(
400
400
unique_coord : DataArray | IndexVariable | _DummyGroup
401
401
if grouper is not None :
402
402
index = safe_cast_to_index (group )
403
- if not index .is_montonic_increasing :
403
+ if not index .is_monotonic_increasing :
404
404
# TODO: sort instead of raising an error
405
405
raise ValueError (
406
406
"Index must be monotonic and increasing for resampling."
Original file line number Diff line number Diff line change @@ -1504,7 +1504,7 @@ def test_resample(self):
1504
1504
expected = DataArray .from_series (expected_ )
1505
1505
assert_identical (actual , expected )
1506
1506
1507
- with pytest .raises (ValueError , match = r"index must be monotonic" ):
1507
+ with pytest .raises (ValueError , match = r"Index must be monotonic" ):
1508
1508
array [[2 , 0 , 1 ]].resample (time = "1D" )
1509
1509
1510
1510
reverse = array .isel (time = slice (- 1 , None , - 1 ))
You can’t perform that action at this time.
0 commit comments