I have two csv files:
csv1:
Mobile_Number Date
503477334 2018-10-12
506002884 2018-10-12
501022162 2018-10-12
503487338 2018-10-13
506012887 2018-10-13
503427339 2018-10-14
csv2:
Date Mobile_Number
2018-10-01 503477334
2018-10-06 501022162
2018-10-08 506002884
2018-10-09 503487338
2018-10-13 506012887
2018-10-14 503427492
Now. I want an output like the following, where there is a new column which indicates the difference between the dates of occurrence of the number in csv1, if the number exists in csv2
csv1:
Mobile_Number Date Difference
503477334 2018-10-12 11
506002884 2018-10-12 4
501022162 2018-10-12 6
503487338 2018-10-13 4
506012887 2018-10-13 0
503427339 2018-10-14 NaN