I have a dataset as below 

```
id     date  time  domain       activity
1  20thdec     2  amazon  add to basket
1  21stdec     2  amazon   product view
1  21stdec     3  amazon  add to basket
1  21stdec     4  amazon  add to basket
2  21stdec     4  amazon  add to basket
2  21stdec     6  amazon  add to basket 

```

How do I get rid of rows which contain the same value in the activity column (i.e for `device_id = 2` the only activity is `add to basket`. I still want to preserve the format for `id 1` which has multiple(duplicate) values of `add to basket` but it has other activity as well 

I tried `pd.drop_duplicates` however that doesn't solves the problem.

Edit : None of the below solutions works , I Need the output as below 

```
id     date  time  domain       activity
1  20thdec     2  amazon  add to basket
1  21stdec     2  amazon   product view
1  21stdec     3  amazon  add to basket
1  21stdec     4  amazon  add to basket

```

The data for id = 2 should be deleted like all the activity irrespective of date/time contains nothing but add to basket, so all the single activity rows should be deleted and only keep rows of data that have multiple activity listed i.e as in id =1 has 2 levels of activity ( Product view and Add to basket) 

Apologies if it caused any misinterpretation 

Thanks