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

    https://github.com/apache/spark/pull/19630#discussion_r148957066
  
    --- Diff: python/pyspark/sql/group.py ---
    @@ -260,19 +259,19 @@ def wrapped(*cols):
                 import pandas as pd
                 result = func(pd.concat(cols, axis=1, keys=columns))
                 if not isinstance(result, pd.DataFrame):
    -                raise TypeError("Return type of the user-defined function 
should be "
    -                                "Pandas.DataFrame, but is 
{}".format(type(result)))
    +                raise TypeError('Return type of the user-defined function 
should be '
    --- End diff --
    
    BTW, I think both `"` and `'` are fine. Let's avoid such changes here 
unless there is a strong reason for it.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to