Occurrence of a number between two specific datetime ranges in Pandas
问题 I have 2 CSV files, as below. I want a new column Difference , where... if a mobile number appears within the date range of Book_date ... App_date : Difference = difference App_date and Occur_date or NaN if it doesn't occur in that date range. I also want to filter it based on a unique category and mobile_number csv_1 Mobile_Number Book_Date App_Date 503477334 2018-10-12 2018-10-18 506002884 2018-10-12 2018-10-19 501022162 2018-10-12 2018-10-16 503487338 2018-10-13 2018-10-13 506012887 2018