Which pandas method groups data for aggregation in Python?
Correct answer
A. groupby()
7 views
A. groupby()
7 views
df.groupby('col').sum() splits, applies and combines.
Asked in: Python Interview Data Libraries
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.