Comparing two Data sets
I am trying to create a code mandatory for work (though I have never used Python or Pandas so I am in over my head!) where I want to compare two rows of two data sets and extract the shared information. 

I can used this method in Access through creating a Query but need to do so in Pandas. I imported two csv files and opened them through pandas so as to make them DataFrames that I can compare. 

I want to take two rows, say B and D of one file(File 1) and match them with B and D of File 2. If the content matches, then I want to create a new array of all of the columns of that specific row. 

So for example, I have two DataFrames with 20 rows and 18 out of the 20 rows have matching items in B and D, I then want an array consisting of those 18 rows with the same data in File 1 and 2. 

Can someone please guide me as to how to get started.
