Published
- 1 min read
df number of zeros in every column
The solution for this is noted below
df number of zeros in every column
Solution
np.count_nonzero(df, axis=0) / len(df)
Try other methods by searching on the site. That is if this doesn’t work