I have a data-frame df like this:
[Date: mm/dd/yyyy]
Date Student_id subject Subject_Scores
11/30/2020 1000101 Math 70
11/25/2020 1000101 Physics 75
12/02/2020 1000101 Biology 60
11/25/2020 1000101 Chemistry 49
11/25/2020 1000101 English 80
12/02/2020 1000101 Sociology 50
11/25/2020 1000102 Physics 80
11/25/2020 1000102 Math 90
12/15/2020 1000102 Chemistry 63
12/15/2020 1000103 English 71
How can I get all the unique Dates for each of individual Student_id's.
Output date_df:
Date Student_id
11/30/2020 1000101
11/25/2020 1000101
12/02/2020 1000101
11/25/2020 1000102
12/15/2020 1000102
12/15/2020 1000103
Also, I need counts of unique Dates for each of Student_id:
Student_id unique_date_count
1000101 3
1000102 2
1000103 1
Edits: I cannot drop any rows because of unique subejcts, so how can I get unique dates and its count for each of Student_id
Thanks for the help, in advance!