group data Flashcards

1
Q

Return a GroupBy object, grouped by values in column named “col”.

A

df.groupby(by=”col”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Return a GroupBy object, grouped by values in index level named “ind”.

A

df.groupby(level=”ind”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Return the number of rows if Series. Otherwise return the number of rows times number of columns if DataFrame.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Aggregate using one or more operations over the specified axis.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly