1. Home
  2. Data Science
  3. Pandas
  4. The groupby() method in pandas is used to:

Added 30 Nov -0001

The groupby() method in pandas is used to:

  1. merge two DataFrames on a common key
  2. split data into groups and apply an aggregation Correct answer
  3. convert one column type into another numeric type
  4. sort the rows of a DataFrame by value

Correct answer

B. split data into groups and apply an aggregation

14 views

MCQSEXAM

Explanation

groupby implements the split-apply-combine pattern for aggregate analysis.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Pandas MCQs

Practise all Pandas MCQs

Similar MCQs