human
How to filter rows containing a string pattern from a Pandas dataframe
assistant
Here is some code to filter rows containing key word `ball` in column `ids`

df[df['ids'].str.contains('ball')]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.