Python Forum

Full Version: How to get row row index of matching row
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have dataframe,
df1:
Name  rank
A     na
B     na  
C     na
D     na
df2:
Category names  rank
std        B      2
normal     D      4
I want to loop through df1, and if name in df1 exist in df2, then get the corresponding rank in df2.