findnans#
- findnans(data=None, **kwargs)[source]#
Alias for
sc.findinds(np.isnan(data))
.Examples:
data = [0, 1, 2, np.nan, 4, np.nan, 6, np.nan, np.nan, np.nan, 10] sc.findnans(data) # Returns array([3, 5, 7, 8, 9])
New in version 3.0.0.New in version 3.1.0: replacednp.isnan
withpd.isna
for robustness