Skip to content

Commit 8469959

Browse files
authored
DOC: Remove doc of deprecated week and weekofyear (#57901)
Remove doc of deprecated week and weekofyear Co-authored-by: Abdulaziz Aloqeely <[email protected]>
1 parent c6d76dd commit 8469959

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/source/user_guide/timeseries.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,6 @@ There are several time/date properties that one can access from ``Timestamp`` or
797797
timetz,"Returns datetime.time as local time with timezone information"
798798
dayofyear,"The ordinal day of year"
799799
day_of_year,"The ordinal day of year"
800-
weekofyear,"The week ordinal of the year"
801-
week,"The week ordinal of the year"
802800
dayofweek,"The number of the day of the week with Monday=0, Sunday=6"
803801
day_of_week,"The number of the day of the week with Monday=0, Sunday=6"
804802
weekday,"The number of the day of the week with Monday=0, Sunday=6"
@@ -812,6 +810,10 @@ There are several time/date properties that one can access from ``Timestamp`` or
812810
is_year_end,"Logical indicating if last day of year (defined by frequency)"
813811
is_leap_year,"Logical indicating if the date belongs to a leap year"
814812

813+
.. note::
814+
815+
You can use ``DatetimeIndex.isocalendar().week`` to access week of year date information.
816+
815817
Furthermore, if you have a ``Series`` with datetimelike values, then you can
816818
access these properties via the ``.dt`` accessor, as detailed in the section
817819
on :ref:`.dt accessors<basics.dt_accessors>`.

0 commit comments

Comments
 (0)