May-12-2019, 11:45 PM
yep!
np.where just returns a data structure with the locations of what you want.
so I would do something like so:
a[np.where(a>0)]
np.where just returns a data structure with the locations of what you want.
so I would do something like so:
a[np.where(a>0)]