Python Forum
How to get row row index of matching row
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get row row index of matching row
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Matching variable to a list index Gilush 17 5,707 Nov-30-2020, 01:06 AM
Last Post: Larz60+
  How get row index of matching row in column 0 Sri 7 3,586 Apr-10-2019, 08:26 PM
Last Post: perfringo
  How to ger matching rows data based on index columns SriRajesh 1 2,173 Mar-08-2019, 11:05 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020