spark-user mailing list archives

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


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?


Regards,




@pandas_udf("double", PandasUDFType.GROUPED_AGG)

def pandas_mean(v):

     return v.sum()



---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org


Mime
View raw message