Skip to content

CountedMissing Source

Bases: Enum

Whether Count counts the missing values.

Added in version 0.1.0

Examples:

import numdaplot as ndp

answers = ndp.Array.from_list([4.0, None, 2.0])
answers.compute(ndp.Count(missing=ndp.CountedMissing.INCLUDED)).to_value()
# 3

Attributes

EXCLUDED = auto() Source

Only the present values are counted. Default value.

Added in version 0.1.0

Examples:

import numdaplot as ndp

answers = ndp.Array.from_list([4.0, None, 2.0])
answers.compute(ndp.Count(missing=ndp.CountedMissing.EXCLUDED)).to_value()
# 2

INCLUDED = auto() Source

Every value is counted, missing or not, which gives the number of rows of a column.

Added in version 0.1.0

Examples:

import numdaplot as ndp

answers = ndp.Array.from_list([4.0, None, 2.0])
answers.compute(ndp.Count(missing=ndp.CountedMissing.INCLUDED)).to_value()
# 3