Hello Python Experts…Please give a code to start. In the dataframe have 2 columns x and y.

Each columns have a series of numbers…I want to check x-column if have 3 duplicate numbers and check all numbers inline to y-column if have in series. And vice-versa…Example as below:

Where x-column have number 4qty of 29 duplicated and equivalanet number in y-column have series 82,83,84…Really appreciate any help…thanks a lot.

```
x y
11 82
12 80
18 69
19 61
22 32
24 55
25 34
25 108
26 90
27 99
29 82 *
29 83 *
29 84 *
29 90
30 82
30 83
31 47
32 33
35 85
47 76
```