I have a dataframe like this:
A B D
d 151 M
d 152 a
d 153 M
d 161 z
d 164 M
d 169 g
d 178 g
d 173 e
d 176 j
d 605 j
d 603 d
d 607 e
d 905 j
d 903 d
d 907 e
I want to filter it based on the values of column B. Specifically i want the values of column B that begins with 15, 16 and 60. My dataframe would be reduced to:
A B D
d 151 M
d 152 a
d 153 M
d 161 z
d 164 M
d 169 g
d 605 j
d 603 d
d 607 e
So far i've been unsuccessful to achieve this result. Which would be the best way to achieve this?