Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how can i aggregate without group by in pandas

df.groupby(lambda _ : True).agg(new_col_name = ('col_name', 'agg_function'))
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #aggregate #group #pandas
ADD COMMENT
Topic
Name
9+1 =