Answers for "select rows with multiple conditions pandas query"

6

select rows with multiple conditions pandas query

df.loc[(df['Salary_in_1000']>=100) & (df['Age']< 60) & (df['FT_Team'].str.startswith('S')),['Name','FT_Team']]
Posted by: Guest on June-20-2020
2

select rows with multiple conditions pandas query

df.query('Salary_in_1000 >= 100 & Age < 60 & FT_Team.str.startswith("S").values')
Posted by: Guest on June-20-2020
0

select rows with multiple conditions pandas query

df.loc[idx]
Posted by: Guest on June-20-2020

Code answers related to "select rows with multiple conditions pandas query"

Python Answers by Framework

Browse Popular Code Answers by Language