HyukjinKwon commented on a change in pull request #25939: [SPARK-27463][PYTHON]
Tidy Up
URL: https://github.com/apache/spark/pull/25939#discussion_r328495928
##########
File path: python/pyspark/sql/cogroup.py
##########
@@ -78,6 +83,19 @@ def apply(self, udf):
|20000101| 2|2.0| y|
|20000102| 2|4.0| y|
+--------+---+---+---+
+ >>> @pandas_udf("time int, id int, v1 double, v2 string",
PandasUDFType.COGROUPED_MAP) # doctest: +SKIP
+ ... def asof_join(k, l, r):
+ ... if k == (1,):
+ ... return pd.merge_asof(l, r, on="time", by="id")
Review comment:
indentation nit
----------------------------------------------------------------
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]