Table Of Contents

Frame count


count(self, where)

Counts the number of rows which meet given criteria.

Parameters:

where : function

UDF which evaluates a row to a boolean

Returns:

: int

number of rows for which the where UDF evaluated to True.

>>> frame.inspect()
[#]  name      age  tenure  phone
====================================
[0]  Fred       39      16  555-1234
[1]  Susan      33       3  555-0202
[2]  Thurston   65      26  555-4510
[3]  Judy       44      14  555-2183
>>> frame.count(lambda row: row.age > 35)
[===Job Progress===]
3