I know how to find an item in a DataFrame using logic, but I was curious is there a way to return the index value of a row from there.
lets say I wanted to first find the row with the name “Jane Doe” I could use something like this:
df[(df.name == 'Jane Doe')]
This would return the entire row for ‘Jane Doe’
but what if I just wanted to return the index for this row and save it to a variable.
my other part of this question is, is there any way to edit a row? The lesson didn’t go over that and I was curious!