viirya 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_r368838706
##########
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:
Will `pyspark.sql.GroupedData.apply` be deprecated future? If so, and as it
takes Python native func, will it be better not to say it is an alias of
`apply`?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]