Python Forum

Full Version: pyspark help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I need a help to convert this pandas df to pyspark dataframe

df=df.groupby('key', as_index=False).agg({'key' : 'first', 'country' : ', '.join})

Appreciate your help/guidance on this.

Thanks,
Lokesh