📅  最后修改于: 2022-03-11 14:46:51.081000             🧑  作者: Mango
# Loads dataset
df = pd.read_csv('dataset.csv')
# Filter data using & instead of and
filtered_df = df.loc[(df['column1'] == var1) & (df['column2'] == var2)]