Skip to content

[FEAT] Deprecate n_periods=0 in Development #1627

Open

Description

@scks1

Development(n_periods=0) fits the same as n_periods=-1 (all origin periods), because _assign_n_periods_weight uses every period when n_periods < 1. The docstring documents only -1 and positive integers. #1606 keeps 0 working as an alias, as discussed there.

Should 0 warn with a FutureWarning for a release and then raise, or stay as an undocumented alias?

(This issue was written with Árbol, an AI assistant, under my direction.)

Activity

  1. henrydingliu commented on Nov 15, 2026

    @henrydingliu
    Member

    @casact/chainladder-maintainers curious to get your thoughts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Scope

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions