Run ❯
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd data = { "name": ["Sally", "Mary", "John"], "age": [50, 40, 30] } df = pd.DataFrame(data) print(df.isin([50, 40]))
name age 0 False True 1 False True 2 False False