This question is with this history: Link
Here is a json format table:
ID Title
19 I am doing great
25 [Must fix problem] Stomach not well
31 [Not-so-urgent] Wash cloths
498 [VERY URGENT] Pay your rent
517 Landlord wants you to pay your rent tomorrow
918 Girlfriend wants to help you to pay rent if you take her out
1000 [Always reproducible issue] Room partner dont want to pay any rent, he is out of cash
I did this
In: selected_row_title = df.loc[df['id'] == 4]["title"]
Output:
[VERY URGENT] Pay your rent
Now, by using Python Pandas, I am trying to write a function as:
get_matching_rows(selected_row_title )
Output
ID 498 has pay your rent
ID 517 has pay your rent
ID 918 has pay rent
ID 1000 has pay rent
I have been tearing my hair out on this and I really need some help, atleast a guidance on how once can implement this. Appreciate any inputs.