Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selecting rows with specific values in pandas

#To select rows whose column value equals a scalar, some_value, use ==:df.loc[df['favorite_color'] == 'yellow']
Source by www.interviewqs.com #
 
PREVIOUS NEXT
Tagged: #selecting #rows #specific #values #pandas
ADD COMMENT
Topic
Name
2+5 =