Boolean indexing

Applies to: python

Boolean indexing selects elements or rows where a boolean condition is true.

df[df["delay"] > 0]

See also: mask, numpy-array, pandas-dataframe