I have two dataframes namely:
df1:
col1 col2
A1 20
B1 22
A2 23
B2 24
df2:
Column1 Column2
A1 20
A2 23
A3 25
A4 28
B1 22
B2 24
B3 27
B4 33
Now, I want to return all rows from df2 having values of df1
Hence , output should be:
df2:
A1 20
B1 22
A2 23
B2 24