I have a dataframe that's several thousand lines long, structured like below. I want to identify which rows have the string "John" and then I want to return those rows so that I can see the values (not just a row id and "True"/"False).
How can I accomplish this? I've been using the str.contains('John') but that just gives me one column with a bunch of boolean responses which is meaningless to me in that form.
FName
JohnDoe
JaneDoe
SallieMae