Skip to content

Commit

Permalink
chore: address pandas futurewarning from "M" (#2632)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Oct 20, 2024
1 parent 691a464 commit dc1df4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/prophet/tests/test_prophet.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def test_make_future_dataframe(self, daily_univariate_ts, backend):
assert len(future) == 3
assert np.all(future["ds"].values == correct.values)

future = forecaster.make_future_dataframe(periods=3, freq="M", include_history=False)
future = forecaster.make_future_dataframe(periods=3, freq=pd.tseries.offsets.MonthEnd(1), include_history=False)
correct = pd.DatetimeIndex(["2013-04-30", "2013-05-31", "2013-06-30"])
assert len(future) == 3
assert np.all(future["ds"].values == correct.values)
Expand Down

0 comments on commit dc1df4c

Please sign in to comment.