Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python multiple conditions in dataframe column values

df.loc[(df['Salary_in_1000']>=100) & (df['Age']< 60) & (df['FT_Team'].str.startswith('S')),['Name','FT_Team']]
Source by kanoki.org #
 
PREVIOUS NEXT
Tagged: #python #multiple #conditions #dataframe #column #values
ADD COMMENT
Topic
Name
8+1 =