It is a precedence operator issue.
You should add extra parenthesis to make your multi condition test working:
d[(d['x']>2) & (d['y']>7)]
This section of the tutorial you mentioned shows an example with several boolean conditions and the parenthesis are used.
Related Contents:
- How do I select rows from a DataFrame based on column values?
- Combining two Series into a DataFrame in pandas
- Add column to dataframe with constant value
- Filtering Pandas DataFrames on dates
- How to filter rows containing a string pattern from a Pandas dataframe [duplicate]
- How to show all columns’ names on a large pandas dataframe?
- Can pandas automatically read dates from a CSV file?
- How to “select distinct” across multiple data frame columns in pandas?
- What is dtype(‘O’), in pandas?
- pandas how to check dtype for all columns in a dataframe?
- Move column by name to front of table in pandas
- What values are valid in Pandas ‘Freq’ tags?
- Pandas selecting by label sometimes return Series, sometimes returns DataFrame
- Pandas DataFrame stored list as string: How to convert back to list
- Group dataframe and get sum AND count?
- Python pandas: how to specify data types when reading an Excel file?
- Retrieve DataFrame of all but one specified column [duplicate]
- Pandas merge two dataframes with different columns
- Finding common rows (intersection) in two Pandas dataframes
- Merge multiple column values into one column in python pandas
- How to simply add a column level to a pandas dataframe
- Transform a Counter object into a Pandas DataFrame
- Pandas – Compute z-score for all columns
- Accessing every 1st element of Pandas DataFrame column containing lists
- Export a LaTeX table from pandas DataFrame
- Pandas: join DataFrames on field with different names? [duplicate]
- Performant cartesian product (CROSS JOIN) with pandas
- Pandas – Slice large dataframe into chunks
- Python pandas: Add a column to my dataframe that counts a variable
- Pandas sort by group aggregate and column
- What’s the best way to sum all values in a Pandas dataframe? [duplicate]
- Accessing a Pandas index like a regular column
- Combine pandas DataFrame query() method with isin()
- pandas extract year from datetime: df[‘year’] = df[‘date’].year is not working
- How to add a column with values 1 to len(df) to a dataframe
- How can I replicate rows of a Pandas DataFrame?
- Use Pandas groupby() + apply() with arguments
- Replace string/value in entire DataFrame
- Merge a list of pandas dataframes
- Pandas Groupby: Count and mean combined
- pandas dataframe str.contains() AND operation
- Passing list-likes to .loc or [] with any missing labels is no longer supported
- Use None instead of np.nan for null values in pandas DataFrame
- Pandas split column into multiple columns by comma
- Python: ufunc ‘add’ did not contain a loop with signature matching types dtype(‘S21’) dtype(‘S21’) dtype(‘S21’)
- How to properly add hours to a pandas.tseries.index.DatetimeIndex?
- Add a row with means of columns to pandas DataFrame
- Select non-null rows from a specific column in a DataFrame and take a sub-selection of other columns
- Got continuous is not supported error in RandomForestRegressor
- How to access subdataframes of pandas groupby by key