maxframe.liteframe.LiteFrame.count#

LiteFrame.count(method='auto', **kw)#

Return the count of non-null values in each column.

Parameters:
  • method ({'auto', 'tree', 'shuffle'}, default 'auto') – Execution strategy. 'auto' selects based on data size.

  • **kw – Additional keyword arguments forwarded to the reduction.

Returns:

Single-row LiteFrame of per-column non-null counts.

Return type:

LiteFrame

Examples

>>> import maxframe.liteframe as mlf
>>> lf = mlf.LiteFrame({'a': [1, 2, None], 'b': [4, 5, 6]})
>>> result = lf.count()
>>> result.execute()
     a  b
0  2  3