group data Flashcards
1
Q
Return a GroupBy object, grouped by values in column named “col”.
A
df.groupby(by=”col”)
2
Q
Return a GroupBy object, grouped by values in index level named “ind”.
A
df.groupby(level=”ind”)
3
Q
Return the number of rows if Series. Otherwise return the number of rows times number of columns if DataFrame.
A
4
Q
Aggregate using one or more operations over the specified axis.
A