Home>
import pandas as pd
import numpy as np
one = pd.read_csv ('data1.csv')
two = pd.read_csv ('data2.csv')
I wrote

and the code.
one is

A Date
10 2011-07-03
20 2011-07-04
10 2011-07-06
20 2011-07-07
30 2011-07-10
40 2011-07-13
25 2011-07-15

two is

B Date
15 2011-07-01
15 2011-07-02
15 2011-07-03
25 2011-07-07
35 2011-07-10
10 2011-07-13
25 2011-07-15
It is a DataFrame like

.
I want to make only one and two DataFrame data that is common to both Dates.
For example, if i am one,

A Date
10 2011-07-03
20 2011-07-07
30 2011-07-10
40 2011-07-13
25 2011-07-15


If i am two,

B Date
15 2011-07-03
25 2011-07-07
35 2011-07-10
10 2011-07-13
25 2011-07-15


I want to How can I take the common term of two DataFrame columns and transform the DataFrame?