File tree 4 files changed +7
-8
lines changed
4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 134
134
core.accessor_dt.DatetimeAccessor.time
135
135
core.accessor_dt.DatetimeAccessor.week
136
136
core.accessor_dt.DatetimeAccessor.weekday
137
- core.accessor_dt.DatetimeAccessor.weekday_name
138
137
core.accessor_dt.DatetimeAccessor.weekofyear
139
138
core.accessor_dt.DatetimeAccessor.year
140
139
Original file line number Diff line number Diff line change @@ -523,7 +523,6 @@ Datetimelike properties
523
523
DataArray.dt.nanosecond
524
524
DataArray.dt.dayofweek
525
525
DataArray.dt.weekday
526
- DataArray.dt.weekday_name
527
526
DataArray.dt.dayofyear
528
527
DataArray.dt.quarter
529
528
DataArray.dt.days_in_month
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ Breaking changes
30
30
31
31
Deprecations
32
32
~~~~~~~~~~~~
33
+ - The `dt.weekday_name ` parameter wasn't functional on modern pandas versions and has been removed. (:issue: `8610 `, :pull: `8664 `)
34
+ By `Sam Coleman <https://github.com/nameloCmaS >`_.
33
35
34
36
35
37
Bug fixes
@@ -73,6 +75,9 @@ Documentation
73
75
74
76
- Pin ``sphinx-book-theme `` to ``1.0.1 `` to fix a rendering issue with the sidebar in the docs. (:issue: `8619 `, :pull: `8632 `)
75
77
By `Tom Nicholas <https://github.com/TomNicholas >`_.
78
+ - Fixed documentation where the use of the depreciated pandas frequency string
79
+ prevented the documentation from being built. (:pull: `8638 `)
80
+ By `Sam Coleman <https://github.com/nameloCmaS >`_.
76
81
77
82
.. _whats-new.2024.01.0 :
78
83
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ def _access_through_cftimeindex(values, name):
59
59
field_values = _season_from_months (months )
60
60
elif name == "date" :
61
61
raise AttributeError (
62
- "'CFTimeIndex' object has no attribute `date`. Consider using the floor method instead, for instance: `.time.dt.floor('D')`."
62
+ "'CFTimeIndex' object has no attribute `date`. Consider using the floor method "
63
+ "instead, for instance: `.time.dt.floor('D')`."
63
64
)
64
65
else :
65
66
field_values = getattr (values_as_cftimeindex , name )
@@ -456,11 +457,6 @@ def dayofweek(self) -> T_DataArray:
456
457
457
458
weekday = dayofweek
458
459
459
- @property
460
- def weekday_name (self ) -> T_DataArray :
461
- """The name of day in a week"""
462
- return self ._date_field ("weekday_name" , object )
463
-
464
460
@property
465
461
def dayofyear (self ) -> T_DataArray :
466
462
"""The ordinal day of the year"""
You can’t perform that action at this time.
0 commit comments