pandas and NumPy 3 · NumPy

Filter with a boolean mask

Select the items that satisfy a condition.

a[a > 2]

Official pandas and NumPy 3 documentation

More numpy commands

All numpy commands · pandas and NumPy 3 cheatsheet

Was this page helpful?