My data (df1)
A1 B1 C1 D1 E1  F1  G1
12  8  1  8  12  AB  6
12  10 0  10  12 BC   4  
I want to filter out above data based on all possible combinations below data(df2)
A1  B1 C1  Count
12  10  0   12
12  8   1    8
11  6   1    5
10  8   0    10
My output i need is
for combination
  A1 B1 C1 of 12,10,12 
in data 2 what are the rows in data 1 will match
for
A1 B1 C1 of 12,10,0 
of data 2 2nd row of data 1 will match.I want to list out rows matching all possible combination cases.
I have tried this but want to automate for all combinations in df2 without mentioning each and every time
g=data[(df1.A1 == 12.0)&(df1.B1 == 10)&(df2.C1==0)]
Output needed
A1 B1 C1 Rows having this combination in df1 12 0 10
