exp1 & exp2 # Element-wise logical AND
exp1 | exp2 # Element-wise logical OR
~exp1 # Element-wise logical NOT
# Loads dataset
df = pd.read_csv('dataset.csv')
# Filter data using & instead of and
filtered_df = df.loc[(df['column1'] == var1) & (df['column2'] == var2)]