You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH/DOC: Vendor or migrate away from pandas' Appender/Substitution docstring helpers #9748
Over in pandas-dev/pandas#63846, we have removed/working on removing all usages of Appender/Substitution over in-lining docstrings. We noticed that statsmodels is still making use of these (private) pandas helpers
pandas will deprecate them instead of fully removing for statsmodels compat, but it would be great if statsmodels could vendor or migrate away from these helpers.
(It would also be helpful if statsmodels also vendors cache_readonly and deprecate_kwarg that's imported in statsmodels/compat/pandas.py)
+1. We're seeing downstream CI failures in MNE-Python due to the Pandas4Warning about statsmodel's use of Substitution
Details
______________________________ test_yule_walker _______________________________
mne\time_frequency\tests\test_ar.py:22: in test_yule_walker
from statsmodels.regression.linear_model import yule_walker as sm_yw
C:\hostedtoolcache\windows\Python\3.13.11\x64\Lib\site-packages\statsmodels\regression\__init__.py:3: in <module>
from .linear_model import yule_walker
C:\hostedtoolcache\windows\Python\3.13.11\x64\Lib\site-packages\statsmodels\regression\linear_model.py:46: in <module>
import statsmodels.base.model as base
C:\hostedtoolcache\windows\Python\3.13.11\x64\Lib\site-packages\statsmodels\base\model.py:29: in <module>
from statsmodels.tools.numdiff import approx_fprime
C:\hostedtoolcache\windows\Python\3.13.11\x64\Lib\site-packages\statsmodels\tools\numdiff.py:358: in <module>
@Substitution(
C:\hostedtoolcache\windows\Python\3.13.11\x64\Lib\site-packages\pandas\util\_decorators.py:443: in __init__
warnings.warn(
E pandas.errors.Pandas4Warning: Substitution is deprecated and will be removed in a future version.
Activity
drammock commentedon Feb 12, 2026
+1. We're seeing downstream CI failures in MNE-Python due to the
Pandas4Warningabout statsmodel's use ofSubstitutionDetails