Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add three conditions in np.where in pandas dataframe

import numpy as np
idx = np.where((df['Salary_in_1000']>=100) & (df['Age']< 60) & (df['FT_Team'].str.startswith('S')))
Source by kanoki.org #
 
PREVIOUS NEXT
Tagged: #add #conditions #pandas #dataframe
ADD COMMENT
Topic
Name
8+1 =