dzhigimont commented on code in PR #40420:
URL: https://github.com/apache/spark/pull/40420#discussion_r1331412813
##########
python/pyspark/pandas/indexes/datetimes.py:
##########
@@ -214,28 +215,8 @@ def microsecond(self) -> Index:
)
return Index(self.to_series().dt.microsecond)
- @property
- def week(self) -> Index:
- """
- The week ordinal of the year.
-
- .. deprecated:: 3.5.0
- """
- warnings.warn(
- "`week` is deprecated in 3.5.0 and will be removed in 4.0.0.",
- FutureWarning,
- )
- return Index(self.to_series().dt.week)
-
- @property
- def weekofyear(self) -> Index:
- warnings.warn(
- "`weekofyear` is deprecated in 3.5.0 and will be removed in
4.0.0.",
- FutureWarning,
- )
- return Index(self.to_series().dt.weekofyear)
-
- weekofyear.__doc__ = week.__doc__
+ def isocalendar(self) -> DataFrame:
Review Comment:
Added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]