eland.groupby.DataFrameGroupBy.count

DataFrameGroupBy.count() → pd.DataFrame

Compute the count value for each group.

Returns
pandas.DataFrame

nunique value for each numeric column of each group

Examples

>>> df = ed.DataFrame(
...   "localhost", "flights",
...   columns=["AvgTicketPrice", "Cancelled", "dayOfWeek", "DestCountry"]
... )
>>> df.groupby("DestCountry").count() # doctest: +NORMALIZE_WHITESPACE
             AvgTicketPrice  Cancelled  dayOfWeek
DestCountry
AE                       46         46         46
AR                      305        305        305
AT                      377        377        377
AU                      416        416        416
CA                      944        944        944
...                     ...        ...        ...
RU                      739        739        739
SE                      255        255        255
TR                       10         10         10
US                     1987       1987       1987
ZA                      283        283        283
<BLANKLINE>
[32 rows x 3 columns]