I have a dataframe which has around 110 columns and around 2 million rows. I want to find the count of unique date count in each row from a column called comments. The 'Comments' column look something like below
------------------------------------------------------------------------
ID Comments
------------------------------------------------------------------------
1 Log Type: customer chat
chat history:
xxxxxxxxx
xxxxxxx
xxxxxxxxxxxxxxx
May 10 2020 23:34:57 +GMT 05:30
--------------------------------------------
log type: Phone call
issue type: xxxxxx
issue:
qqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqq
May 11 2020 08:54:54 + GMT 05:30
----------------------------------------------
log type: phone call
issue:
eeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeee
eeeeeeeeeee
eeeeeeeeeeee
eeeeeeeeeeeeeeeeeee
May 11 2020 14:58:54 + GMT 05:30
----------------------------------
----------------------------------------------------------------------------
2 Log Type: Phone call
issue:
xxxxxxxxx
xxxxxxx
xxxxxxxxxxxxxxx
May 10 2020 23:34:57 +GMT 05:30
--------------------------------------------
log type: Phone call
issue type: xxxxxx
issue:
qqqqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqq
qqqqqqqqqqqqqqq
May 11 2020 08:54:54 + GMT 05:30
----------------------------------------------
log type: phone call
issue:
eeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeee
eeeeeeeeeee
eeeeeeeeeeee
eeeeeeeeeeeeeeeeeee
5/12/2020 14:58:54 + GMT 05:30
----------------------------------------------
The desired output is as given below
ID Count
1 2
2 3
can anyone help on this?