Skip to content

DOC: Move the deprecation schedules for 0.16 and 0.17 one release later - #11327

Merged
bashtage merged 1 commit into
statsmodels:mainfrom
bashtage:wip-deprecation-schedule
Nov 28, 2026
Merged

bashtage merged 1 commit into
statsmodels:mainfrom
bashtage:wip-deprecation-schedule

Conversation

@bashtage

Copy link
Copy Markdown
Member

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.

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:

Deprecation First warns Schedule
GLM link aliases (logit, log, probit, ...) 0.14.x, by 0.14.4 unchanged, due
cochrans_q, mcnemar, symmetry_bowker of sandbox.stats.runs 0.14.x, by 0.14.4 unchanged, due
return values that depend on store, inv, retgrid, ret_coords, return_weights 0.15.0 0.16 -> 0.17
removed_after="0.16" string aliases, arima_model, HolderTuple, TsaDescriptive, TSMLEModel, _Var, smoothers_lowess_old, untested nonlinls/try_mlecov/feasible_gls classes 0.15.0 after 0.16 -> after 0.17
cochrans_q(return_object=...), seasonal_decompose(extrapolate_trend="freq") 0.15.0 0.16 -> 0.17
integer seed of check_random_state(deprecated=True), random start values of ConditionalMNLogit.fit 0.15.0 after 0.15 -> after 0.16

Every 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, and
messages split across string literals), never bare numbers; the 0.17s left in
the tree are data. The .. deprecated:: 0.16.0 directives give the release
that deprecates and are unchanged.

Verification

  • The suite without the slow tests, with the minimum versions (Python 3.11,
    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 . and collect_release_notes.py --check pass.

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.

  • No AI tools were used to develop this pull request.
  • AI tools were 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.

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
bashtage force-pushed the wip-deprecation-schedule branch from 13c88ef to 298c5f9 Compare November 28, 2026 21:43
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.
@bashtage
bashtage merged commit 298c5f9 into statsmodels:main Nov 28, 2026
0 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant