I have 2 dataframe and I want to join them on the basis of month and year from a date without creating extra columns:
example :
df1 :
date_1 value_1
2017-1-15 20
2017-1-31 30
2016-2-15 20
df2:
date_2 value_2
2017-1-1 30
then get result as below i.e. merged on the basis of month and year.
date_1 value_1 value_2
2017-1-15 20 30
2017-1-31 30 30
2016-2-15 20