From d154ba9687750ccd717dfcbdfac75047ce15adc6 Mon Sep 17 00:00:00 2001 From: Spencer Clark Date: Tue, 7 Nov 2023 08:58:59 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Pascal Bourgault --- xarray/coding/cftime_offsets.py | 2 +- xarray/tests/test_cftime_offsets.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/xarray/coding/cftime_offsets.py b/xarray/coding/cftime_offsets.py index ba678302ab5..100f3b249d2 100644 --- a/xarray/coding/cftime_offsets.py +++ b/xarray/coding/cftime_offsets.py @@ -987,7 +987,7 @@ def cftime_range( +--------+--------------------------+ | QS | Quarter-start frequency | +--------+--------------------------+ - | MS | Month-end frequency | + | ME | Month-end frequency | +--------+--------------------------+ | MS | Month-start frequency | +--------+--------------------------+ diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index d74400bf8b2..0ffcb5e8ab9 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -1422,7 +1422,6 @@ def test_date_range_like(start, freq, cal_src, cal_tgt, use_cftime, exp0, exp_pd assert len(out) == 12 - print(out) if exp_pd: assert infer_freq(out) == expected_pandas_freq else: