Hello guys i am new to python.I have two dataframes.One contains the description of medicines which looks like this :
df1.head(5)
PID Drug_Admin_Description
1 sodium chloride 0.9% SOLN
2 Nimodipine 30 mg oral
3 Livothirine 20 mg oral
4 Livo tab 112
5 Omega-3 Fatty Acids
Other table has only drug names, which looks like this :
df2.head(5)
Drug_Name
Sodium chloride 0.5% SOLN
omega-3 Fatty Acids
gentamicin 40 mg/ml soln
amoxilin 123
abcd 12654
Is there a way i can extract only those medicines which are in both df1 and df2.The sample output would look like this :
new_column
Sodium chloride
omega-3
I tried using regex in python but not able to figure out how would i apply this.Thanks in advance