Open
Description
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:
- Leave things as they are, document both ways, and include the definitions in type stubs
- Leave out of type stubs, but keep in documentation
- Leave out of documentation, but include in type stubs
- Leave out of documentation and type stubs, but do not deprecate - just make them "hidden"