To group data by a specific column and perform aggregate functions in Pandas, use the _______ method.

  • aggregate
  • groupby
  • pivot
  • summarize
In Pandas, the groupby method is used to group data by a specific column or columns. This allows you to perform aggregate functions on each group, such as sum, mean, or count. The aggregate method is used after grouping to apply various aggregate functions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *