Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selecting a specific value and corrersponding value in df python

#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 #specific #corrersponding #df #python
ADD COMMENT
Topic
Name
5+8 =