zhengruifeng commented on code in PR #53957:
URL: https://github.com/apache/spark/pull/53957#discussion_r2739336225


##########
python/pyspark/sql/conversion.py:
##########
@@ -1002,9 +1004,18 @@ def localize_tz(arr: "pa.Array") -> "pa.Array":
 
 
 class ArrowArrayToPandasConversion:
-    @classmethod
+    """
+    Conversion utilities for converting PyArrow Arrays and ChunkedArrays to 
pandas.
+
+    This class provides methods to convert PyArrow columnar data structures to 
pandas
+    Series or DataFrames, with support for Spark-specific type handling and 
conversions.
+
+    The class is primarily used by PySpark's Arrow-based serializers for UDF 
execution,
+    where Arrow data needs to be converted to pandas for Python UDF processing.
+    """
+
+    @staticmethod

Review Comment:
   let's use `@classmethod`



-- 
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]

Reply via email to