find zeros in pandas dataframe code example
Example 1: df count zeros
df.astype(bool).sum(axis=0)
Example 2: get number of zero is a row pandas
(pandas_dataframe == 0).sum(axis=1)
df.astype(bool).sum(axis=0)
(pandas_dataframe == 0).sum(axis=1)