Aug-04-2021, 11:24 AM
Line 2 seems particularly problematic.
First, remember that whitespace matters in Python. So, tighten up the code, get rid of the space between genes_mouse_human and the opening bracket in both places. However, that may not be the problem.
Recognize that where you have == the expression will resolve to True or False. I do not think that is what you want.
Look at the Pandas functions .loc and .iloc I think those will help you with finding values in your dataframe properly.
First, remember that whitespace matters in Python. So, tighten up the code, get rid of the space between genes_mouse_human and the opening bracket in both places. However, that may not be the problem.
Recognize that where you have == the expression will resolve to True or False. I do not think that is what you want.
Look at the Pandas functions .loc and .iloc I think those will help you with finding values in your dataframe properly.