HyukjinKwon commented on code in PR #37947:
URL: https://github.com/apache/spark/pull/37947#discussion_r975968699
##########
python/pyspark/pandas/frame.py:
##########
@@ -2054,9 +2054,16 @@ def extract_kv_from_spark_row(row: Row) -> Tuple[Name,
Any]:
):
yield tuple(([k] if index else []) + list(v))
- def items(self) -> Iterator[Tuple[Name, "Series"]]:
- """This is an alias of ``iteritems``."""
- return self.iteritems()
+ def iteritems(self) -> Iterator[Tuple[Name, "Series"]]:
+ """
+ This is an alias of ``items``.
+
+ .. deprecated:: 3.4.0
+ iteritems is deprecated and will be removed in a future version.
+ Use .items instead.
+ """
+ warnings.warn("Deprecated in 3.4, Use DataFrame.items instead.",
FutureWarning)
Review Comment:
```suggestion
warnings.warn("Deprecated in 3.4.0, Use DataFrame.items instead.",
FutureWarning)
```
--
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]