[2] https://docs.tiledb.com/developer/api-usage/embedded-sql
(disclosure: TileDB, inc. employee)
Would love your feedback :)
f1 = (df["col1"] == condition1)
f2 = (df["col2"] == condition2)
df[f1 & f2]
This is equivalent to the 'pandas boolean indexing multiple conditions' method.
f1 = (df[“col1”] == condition1)
f2 = (df[“col2”] == condition2)
df[f1 & f2]But grouping data is extremely common in data analysis.
Basically, the strategy with grouped data, is taking the loc approach, and sprinkling in a bunch of additional .transform calls. :/
``` my_dataframe.loc[lambda df: df['col'] > 0.8] ```
Would this help work around your issue?
Original title: "Pandas dataframe filter with Multiple conditions"
df.loc[(df['Salary_in_1000']>=100) & (df['Age']< 60) & (df['FT_Team'].str.startswith('S')),['Name','FT_Team']]