I have a sample dataframe. This data refers to the calling data of some users. It is shown as below,
users contacts duration call_type timestamp date
7852979384 9614523545 116 Outgoing 2020-09-09 13:45:57.944 2020-09-09
7997145201 9676322541 114 Outgoing 2020-09-07 17:40:37.229 2020-09-07
9521469384 9052178510 0 Missed_call 2020-09-04 12:27:20.353 2020-09-04
9485712390 9978953153 65 Outgoing 2020-09-11 13:53:54.016 2020-09-11
8521486312 9614523545 0 Missed_call 2020-09-11 12:50:50.969 2020-09-11
8521486312 9147528510 0 Missed_call 2020-09-11 12:50:50.969 2020-09-11
From this I need to get the number of missed calls data from contacts and the users who're not answered in 2 days. The expected output is as follows,
users no. of contacts
7852979384 5
7997145201 3
9521469384 2
It would be great that anyone can help me on this. Thank You.