i have a data frame with columns [ID,Date] i want to get the id's that has occurred more than once and check whether they happend in the same date or not. i tried this way for it.
#sample data
ID Date
0 1 2020-01-01
1 1 2020-01-01
2 1 2020-02-01
3 2 2020-01-01
#expected output
ID Date
0 1 2020-02-01
1 2 2020-01-01
this is what i tried
df.drop(df[(df['Date'] >1) & (df['ID'] > 1)])
but it is not giving me correct values.