python pandas count zeros column code example
Example 1: python count number of zeros in a column
(myDataFrame[column_name] == 0).sum()
Example 2: df count zeros
df.astype(bool).sum(axis=0)
(myDataFrame[column_name] == 0).sum()
df.astype(bool).sum(axis=0)