Data selecting
Select columns by column names¶
Filter by value¶
Filter by conditions¶
query
result = df.query('column > value and other_column < other_value')
df = df.query('date.isnull()')
filter by value not in another list
# Tilde operator
df = df[~df.group.isin(["A","B","D"])]
# False condition
df = df[df.group.isin(["A","B","D"])==False]