You can do that as follows:
df[(df['col_name'].str.contains('apple')) & (df['col_name'].str.contains('banana'))]
Related Contents:
- Filter pandas DataFrame by substring criteria
- Find column whose name contains a specific string
- How to test if a string contains one of the substrings in a list, in pandas?
- add a string prefix to each value in a string column using Pandas
- Remove unwanted parts from strings in a column
- Converting a column within pandas dataframe from int to string
- String concatenation of two pandas columns
- Pandas DataFrame stored list as string: How to convert back to list
- Pandas column access w/column names containing spaces
- Remove first x number of characters from each row in a column of a Python dataframe
- Python – Turn all items in a Dataframe to strings
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- How to flatten a hierarchical index in columns
- Pandas read_csv: low_memory and dtype options
- Get the row(s) which have the max value in groups using groupby
- Normalize columns of a dataframe
- How do I Pandas group-by to get sum?
- Using Pandas to pd.read_excel() for multiple worksheets of the same workbook
- How to loop over grouped Pandas dataframe?
- How to replace NaNs by preceding or next values in pandas DataFrame?
- Compare two DataFrames and output their differences side-by-side
- Insert a row to pandas dataframe
- Convert pandas data frame to series
- How to add a suffix (or prefix) to each column name?
- How to lowercase a pandas dataframe string column if it has missing values?
- Pandas split DataFrame by column value
- ‘DataFrame’ object has no attribute ‘sort’
- Filtering Pandas Dataframe using OR statement
- substring of an entire column in pandas dataframe
- Pandas version of rbind
- pandas get the row-wise minimum value of two or more columns
- Fast punctuation removal with pandas
- SQL-like window functions in PANDAS: Row Numbering in Python Pandas Dataframe
- Diff of two Dataframes
- Python / Pandas – GUI for viewing a DataFrame or Matrix [closed]
- How to delete multiple pandas (python) dataframes from memory to save RAM?
- Numpy “where” with multiple conditions
- return max value from pandas dataframe as a whole, not based on column or rows
- Set MultiIndex of an existing DataFrame in pandas
- How can I use cumsum within a group in Pandas?
- Pandas DataFrame: apply function to all columns
- Returning multiple values from pandas apply on a DataFrame
- How to select a range of values in a pandas dataframe column?
- How to pivot a dataframe in Pandas? [duplicate]
- How to do/workaround a conditional join in python Pandas?
- Create single row python pandas dataframe
- Group by and find top n value_counts pandas
- Create multiple dataframes in loop
- Reading a pickle file (PANDAS Python Data Frame) in R
- Nested Json to pandas DataFrame with specific format