Error while selecting in dataframe

THE SYNTAX i used in my script
df[df.Names = ‘jose’ ]
#get all the columns of the row which satisfies the condition

similarly in my data frame (exam_scores )
i wanted to print the row in which math score is 49, but i am getting an error(invalid syntax) .


i think this is happening because math score has a space between them
how to deal with it?

yes you are right @sanketmishra. Try this:

exam_scores[exam_scores[‘math score’] == 49]