Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove old_names argument #396

Closed
mathause opened this issue Feb 14, 2024 · 1 comment · Fixed by #405
Closed

remove old_names argument #396

mathause opened this issue Feb 14, 2024 · 1 comment · Fixed by #405
Assignees

Comments

@mathause
Copy link
Member

mathause commented Feb 14, 2024

We use the old_names argument from statsmodels:

AR_model = AutoReg(data, lags=lags, old_names=False)

and in the tests

mocked_auto_regression.assert_called_with(data, lags=lags, old_names=False)

we should remove this and require statsmodels v0.13+ (see #369 how to do this)


statsmodels is the first that has the default of old_names=False. See


I am not sure if statsmodels will deprecate the "old names" only or if it also deprecates the old_names argument. The reason why it does not raise a warning is

https://github.com/statsmodels/statsmodels/blob/37bd2e421bad61bc54e8260b86a10a68d17892b3/statsmodels/tsa/ar_model.py#L251

(They should set old_names=None and do

if old_names is not None:
    warnings.warn(...)

)

@mathause
Copy link
Member Author

Only marginally related, but here is the nicer deprecation I mentioned today:

import xarray as xr
ds = xr.Dataset({"x": [1, 2]})

# these two are inconsistent
ds.dims
ds.x.dims 

# so this throws a warning because it's deprecated
ds.dims["x"] 

# check the implementation
xr.core.utils.FrozenMappingWarningOnValuesAccess??

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 a pull request may close this issue.

2 participants