Skip to content

QST: Roadmap for deprecations of Period types #56588

Open
@ChadFulton

Description

@ChadFulton

Research

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

NA

Question about pandas

Background

There have been several issues raised related to the Period types, such as:

And the latter deprecation of the business-day period has already been implemented.

This is of course related to the enhancement allowing non-ns units to datetimes, see e.g.:

Questions

  1. Given the fact that deprecations of Period types have already begun, it would be useful to understand what the expected roadmap for Period is. Is it expected that it will be removed as suggested in DEPR: Period, PeriodFoo #54235? Is there a plan for how to move forward on the "sticking points" listed there (especially the missing units: Week-with anchor, quarter, Year-with-anchor)?

  2. The current deprecation of business day periods in DEPR: Period[B] #53446 now requires bifurcation of code from Period to Timestamp in the special case of business days - if you are using Periods, you can't wholesale switch to Timestamps yet (at least if you have e.g. Quarters), but you also can no longer stick with just Periods.

Tentative request

To me, it would make sense to revert the deprecation of the BDay Period dtype until there is a more comprehensive roadmap for Period types and a path to make a more wholesale switch. But my apologies if I missed something fundamental here about why that deprecation is important in itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issuePeriodPeriod data typeUsage Question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions