spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamborta <>
Subject Dataframe groupby custom functions (python)
Date Tue, 24 Mar 2015 17:49:11 GMT
Hi all,

I have been trying out the new dataframe api in 1.3, which looks great by
the way.

I have found an example to define udfs and add them to select operations,
like this:

slen = F.udf(lambda s: len(s), IntegerType()), slen('slen')).collect()

is it possible to to something similar with aggregates? Something like this:

gdf = df.groupBy(


View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message