Skip to content

Commit b518074

Browse files
authored
switch to unit "D" (#9170)
1 parent 56209bd commit b518074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/tests/test_missing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def make_interpolate_example_data(shape, frac_nan, seed=12345, non_uniform=False
8484

8585
if non_uniform:
8686
# construct a datetime index that has irregular spacing
87-
deltas = pd.to_timedelta(rs.normal(size=shape[0], scale=10), unit="d")
87+
deltas = pd.to_timedelta(rs.normal(size=shape[0], scale=10), unit="D")
8888
coords = {"time": (pd.Timestamp("2000-01-01") + deltas).sort_values()}
8989
else:
9090
coords = {"time": pd.date_range("2000-01-01", freq="D", periods=shape[0])}

0 commit comments

Comments
 (0)