to to something similar with aggregates? Something like this:
gdf = df.groupBy(df.name)
gdf.agg(slen(df.age)).collect()
thanks,
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Dataframe-groupby-custom-functions-python-tp22205.html
Sent from the Apache Spark
this:
gdf = df.groupBy(df.name)
gdf.agg(slen(df.age)).collect()
thanks,
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Dataframe-groupby-custom-functions-python-tp22205.html
Sent from the Apache Spark User List mailing list archive at Nabble.com