I have 2 DataFrames:
df1
names 1 2 3 4 5
0 abcdefg 43.9 32.875 34.025 51.625 74.025
1 efgh 42.775 23.975 40.675 41.375 2.695
2 ijk 2.29 23.6530000 68.175 68.875 2.29
3 lmn 23.504 26.503 36.425 36.65 10.742
4 opq 6.98 7.515 6.98 7.515
df 2
Numbers
54174 42.775
54175 43.900000
54176 35.550000
54177 35.550000
54178 43.900000
Is there anyway to check if the df2.Numbers is at all in df1, and if so extract the relevant df1.names into a separate dataframe? Expected output:
Numbers Revised
54174 42.775 efgh
54175 43.900000 abcdefg
54176 35.550000 NA
54177 35.550000 NA
54178 43.900000 abcdefg
Any help will be greatly appreciated.
floatvalues, there might be small non-visible representation errors.