Skip to content
Advertisement

How to filter out pandas dataframe rows based on contains condition?

I have below dataframe

JavaScript

I have input array, by which i wanted to check df and filter out corresponding data.

JavaScript

Output i want

JavaScript

Can anyone guide me how can i achieve this ?

Advertisement

Answer

You can try this –

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement