Deprecate passing default args as positional in DataFrame.set_index by MarcoGorelli · Pull Request #41495 · pandas-dev/pandas (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what our deprecation policy does say

Deprecations will only be enforced in major releases. For example, if a behavior is deprecated in pandas 1.2.0, it will continue to work, with a warning, for all releases in the 1.x series. The behavior will change and the deprecation removed in the next major release (2.0.0).

out deprecation policy also says

pandas will introduce deprecations in minor releases.

what our deprecation policy does NOT say is what happens when the deprecation is introduced late in the series and there are no further releases in the series.

so if our next release after 1.3 (where these deprecations are introduced) is 2.0, do we deprecate the behaviour? "Deprecations will only be enforced in major releases." so the next major release is 3.0.

if the next release is 1.4, then OK to deprecate in 2.0?