how to calculate percentage of sparsity for a numpy array/matrix?,np.isnan(a).sum()