You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to propose a summarize function, similar to dplyr's summarise function and pandas' agg function, but for grouping operations, and more flexible
Example API
df.summarize(y='sum',n=lambdadf: df.nth(1), by='x')
# summarize on multiple columnsdf.summarize((['a','b','c'], 'sum'), by='x')
# replicate dplyr's across# https://stackoverflow.com/q/63200530/7175713# select_columns syntax can fit in nicely heremtcars.summarize(("*t", "mean"), ("*p", "sum"), by='cyl')
The text was updated successfully, but these errors were encountered:
Brief Description
I would like to propose a
summarize
function, similar to dplyr'ssummarise
function and pandas'agg
function, but for grouping operations, and more flexibleExample API
The text was updated successfully, but these errors were encountered: