eland.groupby.DataFrameGroupBy.count#
- DataFrameGroupBy.count() pd.DataFrame #
计算每个组的计数值。
返回值#
- pandas.DataFrame
每个组的每个数字列的唯一值数量
参见#
示例#
>>> df = ed.DataFrame( ... "http://localhost:9200", "flights", ... columns=["AvgTicketPrice", "Cancelled", "dayOfWeek", "DestCountry"] ... ) >>> df.groupby("DestCountry").count() 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 [32 rows x 3 columns]