📅  最后修改于: 2022-03-11 14:47:01.454000             🧑  作者: Mango
# Dataframe df column 'columnA' is any of the values 'value1', 'value2'
df[df['columnA'].isin(['value1', 'value2'])]['columnB']
# SQL equivalent:
SELECT columnB FROM df WHERE columnA IN ('value1', 'value2')