Skip to content

Commit

Permalink
switch to unit "D" (#9170)
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis authored Jun 25, 2024
1 parent 56209bd commit b518074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def make_interpolate_example_data(shape, frac_nan, seed=12345, non_uniform=False

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

0 comments on commit b518074

Please sign in to comment.