HyukjinKwon commented on a change in pull request #27165: 
[SPARK-28264][PYTHON][SQL] Support type hints in pandas UDF and rename/move 
inconsistent pandas UDF types
URL: https://github.com/apache/spark/pull/27165#discussion_r369331431
 
 

 ##########
 File path: python/pyspark/sql/pandas/group_ops.py
 ##########
 @@ -84,6 +94,45 @@ def apply(self, udf):
         jdf = self._jgd.flatMapGroupsInPandas(udf_column._jc.expr())
         return DataFrame(jdf, self.sql_ctx)
 
+    @since(3.0)
+    def applyInPandas(self, func, schema):
+        """
+        It is an alias :meth:`pyspark.sql.GroupedData.apply`; however, it 
takes a Python
+        native function directly.
 
 Review comment:
   I will do that when we actually deprecate. If users don't like this way, 
maybe we should remove this note and don't deprecate.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to