Repository navigation
DOC: Move the deprecation schedules for 0.16 and 0.17 one release later - #11327
Merged
Merged
Conversation
The release after 0.15.0 is 0.16.0 instead of 0.15.1, so the deprecation
schedules, written when 0.15.1 was the next release, came one release
too early.
- Every schedule that names 0.17 now names 0.18: "in statsmodels
0.17.0", "after statsmodels 0.17 is released", "removed after 0.17",
"In release 0.17.0 or after January 2028" and "After 0.17 or January
2028". The January 2028 dates are unchanged.
- A change scheduled for 0.16 stays there only if its deprecation was in
a 0.14.x release at least two years ago (0.14.0 to 0.14.4, the last of
them released on 2024-10-03). None of the deprecations that name 0.16
was; they first warn in 0.15.0 (2026-08-27) and move to 0.17:
- "In release 0.16.0 or after July 2027, whichever is later": the
return values that depend on store, inv, retgrid, ret_coords and
return_weights (stattools, diagnostic, linear_model, kde,
regressionplots, emplike). The July 2027 and July 2028 dates are
unchanged.
- removed_after="0.16" of the deprecated string aliases (alternative
and others), and "removed after statsmodels 0.16 is released" (the
arima_model module, HolderTuple, TsaDescriptive, TSMLEModel, _Var,
smoothers_lowess_old, the untested classes of nonlinls, try_mlecov
and feasible_gls).
- return_object of cochrans_q ("removed in statsmodels 0.16.0") and
extrapolate_trend="freq" of seasonal_decompose ("removed in 0.16").
- "After statsmodels 0.15 is released", that is, in 0.16: the integer
seed of check_random_state(deprecated=True) and the random start
values of ConditionalMNLogit.fit now change after 0.16.
- Unchanged, since they warned in 0.14.x by 2024-10 and are now due: the
GLM link aliases (logit, log, probit, ...), "removed after the 0.15.0
release", and cochrans_q, mcnemar and symmetry_bowker of
statsmodels.sandbox.stats.runs, "removed after statsmodels 0.15".
The warning messages, docstrings, tests, the warning filters in
pyproject.toml, the 0.16.0 release notes and the fragments change
together. The `.. deprecated:: 0.16.0` directives, which give the
release that deprecates, are unchanged.
bashtage
force-pushed
the
wip-deprecation-schedule
branch
from
November 28, 2026 21:43
13c88ef to
298c5f9
Compare
bashtage
added a commit
to bashtage/statsmodels
that referenced
this pull request
Nov 28, 2026
The release after 0.15.0 is 0.16.0, not 0.15.1, so the design argument is deprecated in 0.16.0. Move its removal one release later, to after statsmodels 0.18 is released, as xref statsmodels#11327 does for the deprecations that named 0.17.
bashtage
added a commit
to bashtage/statsmodels
that referenced
this pull request
Nov 28, 2026
The release after 0.15.0 is 0.16.0, not 0.15.1, so unknown keyword arguments of in-sample prediction are deprecated in 0.16.0. Move the change to a TypeError one release later, to after statsmodels 0.18 is released, as xref statsmodels#11327 does for the deprecations that named 0.17.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The release after 0.15.0 is 0.16.0 instead of 0.15.1, so the deprecation
schedules, written when 0.15.1 was the next release, came one release
too early.
0.17.0", "after statsmodels 0.17 is released", "removed after 0.17",
"In release 0.17.0 or after January 2028" and "After 0.17 or January
2028". The January 2028 dates are unchanged.
a 0.14.x release at least two years ago (0.14.0 to 0.14.4, the last of
them released on 2024-10-03). None of the deprecations that name 0.16
was; they first warn in 0.15.0 (2026-08-27) and move to 0.17:
return values that depend on store, inv, retgrid, ret_coords and
return_weights (stattools, diagnostic, linear_model, kde,
regressionplots, emplike). The July 2027 and July 2028 dates are
unchanged.
and others), and "removed after statsmodels 0.16 is released" (the
arima_model module, HolderTuple, TsaDescriptive, TSMLEModel, _Var,
smoothers_lowess_old, the untested classes of nonlinls, try_mlecov
and feasible_gls).
extrapolate_trend="freq" of seasonal_decompose ("removed in 0.16").
seed of check_random_state(deprecated=True) and the random start
values of ConditionalMNLogit.fit now change after 0.16.
GLM link aliases (logit, log, probit, ...), "removed after the 0.15.0
release", and cochrans_q, mcnemar and symmetry_bowker of
statsmodels.sandbox.stats.runs, "removed after statsmodels 0.15".
The warning messages, docstrings, tests, the warning filters in
pyproject.toml, the 0.16.0 release notes and the fragments change
together. The
.. deprecated:: 0.16.0directives, which give therelease that deprecates, are unchanged.
How each schedule was checked
The 0.14.x releases at least two years old are 0.14.0 (2023-05-05) to 0.14.4
(2024-10-03); 0.14.5 (2025-07-07) and 0.14.6 (2025-12-05) are not. For every
deprecation that names 0.16 (or "after 0.15", which also falls due in 0.16),
the deprecation, not only today's wording of it, was looked for in those
release tags:
logit,log,probit, ...)cochrans_q,mcnemar,symmetry_bowkerofsandbox.stats.runsstore,inv,retgrid,ret_coords,return_weightsremoved_after="0.16"string aliases,arima_model,HolderTuple,TsaDescriptive,TSMLEModel,_Var,smoothers_lowess_old, untestednonlinls/try_mlecov/feasible_glsclassescochrans_q(return_object=...),seasonal_decompose(extrapolate_trend="freq")check_random_state(deprecated=True), random start values ofConditionalMNLogit.fitEvery schedule that named 0.17 now names 0.18 ("after statsmodels 0.17 is
released" included). The dates are unchanged: "In release 0.18.0 or after
January 2028, whichever comes sooner", and "In release 0.17.0 or after
July 2027, whichever is later".
Only version contexts were changed ("statsmodels 0.17", "release 0.16",
"after 0.17",
removed_after=, the escaped forms in test regexes, andmessages split across string literals), never bare numbers; the 0.17s left in
the tree are data. The
.. deprecated:: 0.16.0directives give the releasethat deprecates and are unchanged.
Verification
NumPy 2.0.0, SciPy 1.14.0, pandas 2.2.3, patsy 0.5.6, formulaic 1.1.0) and
matplotlib: 34202 passed; with the newest versions (Python 3.14, NumPy
2.5.5, SciPy 1.18.1, pandas 3.1.1): 34154 passed. In both runs one test
failed,
test_deprecated_int_warns_and_returns_randomstate, which matched"After statsmodels 0.15" without "is released"; after fixing it,
test_rng_qrng.py and the Holt-Winters and exponential smoothing tests that
match the same warning pass on both (900 passed). No warnings in the
summaries.
ruff check .andcollect_release_notes.py --checkpass.Merges cleanly with #11326.
AI Disclosure
Contributions must comply with the statsmodels AI Policy.
Tick exactly one of the following. If AI tools were used, replace the
<...>placeholders in the second option with the tool name(s) and how the tool's output was
used.
Tool(s): Claude Code.
Used for: finding every deprecation schedule, checking in the release tags when each deprecation first warned, changing the versions and running the test suite.
I have personally read, understood, and can explain every line of this diff, and
have verified the statistical/numerical correctness of the change.