In [3]: df[df['ids'].str.contains("ball")]
Out[3]:
ids vals
0 aball 1
1 bball 2
3 fball 4
More Related Contents:
- Pandas conditional creation of a series/dataframe column
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- How to split a dataframe string column into two columns?
- Annotate bars with values on Pandas bar plots
- Comparing two dataframes and getting the differences [duplicate]
- Why isn’t my Pandas ‘apply’ function referencing multiple columns working? [closed]
- set difference for pandas
- Nested dictionary to multiindex dataframe where dictionary keys are column labels
- Python pandas: how to specify data types when reading an Excel file?
- python pandas extract year from datetime: df[‘year’] = df[‘date’].year is not working
- Pandas filling missing dates and values within group
- Use groupby in Pandas to count things in one column in comparison to another
- How can I remove all non-numeric characters from all the values in a particular column in pandas dataframe?
- Combining two Series into a DataFrame in pandas
- pandas unique values multiple columns
- How to find which columns contain any NaN value in Pandas dataframe
- Python Pandas Group by date using datetime data
- Converting a column within pandas dataframe from int to string
- Convert pandas data frame to series
- Pandas – dataframe groupby – how to get sum of multiple columns
- Pandas DataFrame merge summing column
- Mapping ranges of values in pandas dataframe [duplicate]
- pandas: combine two columns in a DataFrame
- Binning a column with pandas
- Convert month int to month name in Pandas
- How to get/set a pandas index column title or name?
- Python pandas integer YYYYMMDD to datetime
- How to use str.contains() with multiple expressions in pandas dataframes
- How to return a csv file/Pandas DataFrame in JSON format using FastAPI?
- How to get number of groups in a groupby object in pandas?