Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21082#discussion_r192146449
  
    --- Diff: python/pyspark/worker.py ---
    @@ -128,6 +128,17 @@ def wrapped(*series):
         return lambda *a: (wrapped(*a), arrow_return_type)
     
     
    +def wrap_window_agg_pandas_udf(f, return_type):
    +    arrow_return_type = to_arrow_type(return_type)
    +
    +    def wrapped(*series):
    +        import pandas as pd
    +        result = f(*series)
    +        return pd.Series([result]).repeat(len(series[0]))
    --- End diff --
    
    Let's leave a short comment where we are here.


---

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

Reply via email to