spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Stojanov <>
Subject Purpose of type in pandas_udf
Date Thu, 12 Nov 2020 23:19:36 GMT

Note "double" in the function decorator. Is this specifying the type of 
the data that goes into pandas_mean, or the type returned by that function?


@pandas_udf("double", PandasUDFType.GROUPED_AGG)

def pandas_mean(v):

     return v.sum()

To unsubscribe e-mail:

View raw message