I have two dataframes, one with ITM JPM Puts from 2011, and another with interest rates, dividends etc. A small example of the two frames are;
Symbol ExpirationDate StrikePrice DataDate
JPM 2011-01-07 54 2011-01-05
JPM 2011-01-22 55 2011-01-05
JPM 2011-01-28 44 2011-01-10
Date Rf Div
04/01/2011 0.2 3
05/01/2011 0.1 3
10/01/2011 0.2 4
I am trying to join the two frames so that the df1$DataDate is == df2$Date;
Symbol ExpirationDate StrikePrice DataDate Rf Div
JPM 2011-01-07 54 2011-01-05 0.1 3
JPM 2011-01-22 55 2011-01-05 0.1 3
JPM 2011-01-28 44 2011-01-10 0.2 4
I'm at a loss at how to do this however. The first step will involve formatting the dates in the two separate dataframes to be the same?