Jan-03-2023, 04:34 PM
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
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