Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Filter in pandas

#Filtering for SP state and price up or equal 115
sp_above_mean = df[(df['price'] >= 115) & (df['seller_state'] == 'SP')]
Source by betterprogramming.pub #
 
PREVIOUS NEXT
Tagged: #Filter #pandas
ADD COMMENT
Topic
Name
9+2 =