modin.pandas.DataFrame.count¶
- DataFrame.count(axis=0, numeric_only=False) Series | Scalar[source]¶
Count non-NA cells for each column or row.
The values None, NaN, NaT are considered NA.
- Parameters:
axis ({0 or 'index', 1 or 'columns'}, default 0) – If 0 or ‘index’ counts are generated for each column. If 1 or ‘columns’ counts are generated for each row. Not supported yet.
numeric_only (bool, default False) – Include only float, int or boolean data.
- Returns:
For each column/row the number of non-NA/null entries.
- Return type:
Snowpark pandas
Series
See also
Series.countNumber of non-NA elements in a Series.
DataFrame.value_countsCount unique combinations of columns.
DataFrame.shapeNumber of DataFrame rows and columns (including NA elements).
DataFrame.isnaBoolean same-sized DataFrame showing places of NA elements.
Examples
Constructing DataFrame from a dictionary:
Notice the uncounted NA values: