Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

loc with multiple conditions

df2 = df.loc[((df['a'] > 1) & (df['b'] > 0)) | ((df['a'] < 1) & (df['c'] == 100))]
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #loc #multiple #conditions
ADD COMMENT
Topic
Name
4+5 =