Use isin
df_new[df_new['l_ext'].isin([31, 22, 30, 25, 64])]
More Related Contents:
- Pandas conditional creation of a series/dataframe column
- Split (explode) pandas dataframe string entry to separate rows
- Convert pandas dataframe to NumPy array
- Binning a column with Python Pandas
- Performant cartesian product (CROSS JOIN) with pandas
- Pandas read_csv low_memory and dtype options
- How to take column-slices of dataframe in pandas
- replace() method not working on Pandas DataFrame
- Numpy “where” with multiple conditions
- How to map numeric data into categories / bins in Pandas dataframe
- Coalesce values from 2 columns into a single column in a pandas dataframe
- Conditionally fill column values based on another columns value in pandas
- How can I map True/False to 1/0 in a Pandas DataFrame?
- Pandas finding local max and min
- SQL-like window functions in PANDAS: Row Numbering in Python Pandas Dataframe
- Select multiple ranges of columns in Pandas DataFrame
- Pandas lookup from one of multiple columns, based on value
- ‘DataFrame’ object has no attribute ‘sort’
- python pandas flatten a dataframe to a list
- how do I calculate a rolling idxmax
- What is dtype(‘O’), in pandas?
- vectorize conditional assignment in pandas dataframe
- Why is np.where faster than pd.apply
- Binning a column with pandas
- Unpivot Pandas Data
- Get first and second highest values in pandas columns
- Store numpy.array in cells of a Pandas.DataFrame
- Python pandas: how to remove nan and -inf values
- Filtering pandas dataframe with multiple Boolean columns
- What’s the best way to sum all values in a Pandas dataframe? [duplicate]