I have following `pandas` `DataFrame` 

```
data = ['18#38#123#23=>21', '18#38#23#55=>35']
d = pd.DataFrame(data, columns = ['rule'])

```

and I have list of integers 

```
r = [18, 55]

```

and I want to filter rules from above `DataFrame` if all integers in the list `r` are present in the rule too. I tried the following code and failed

```
d[d['rule'].str.replace('=>','#').split('#').astype(set).issuperset(set(r))]

```

How can I achieve the desired filtering with `pandas`