Skip to content

DEPR: Deprecate daysinmonth, dayofweek, dayofyear #46768

Open
@Dr-Irv

Description

@Dr-Irv

Based on original issue #1723 and #1723 (comment) and #37390 (comment), and follow up discussion at #46761 (comment)

Should we deprecate daysinmonth, dayofweek, dayofyear with pointers to days_in_month, day_of_week, and day_of_year respectively for these classes:

  • Timestamp
  • Period
  • DatetimeArray
  • PeriodArray
  • PeriodIndex
  • NaTType
  • Series.dt
  • DatetimeIndex

Other possibilities:

  1. Leave things as they are, document both ways, and include the definitions in type stubs
  2. Leave out of type stubs, but keep in documentation
  3. Leave out of documentation, but include in type stubs
  4. Leave out of documentation and type stubs, but do not deprecate - just make them "hidden"

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatePeriodPeriod data typeTimestamppd.Timestamp and associated methods

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions