Answers for "pandas isin another dataframe column"

0

pandas isin another dataframe column

df1.merge(df2, left_on='B', right_on='0')[df1.columns]

     A   B  C  D
0  102  21  2  3
1  104  40  2  3
Posted by: Guest on April-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language