I'm trying to find similarity across columns in a dataframe (Python). Can I get the similarity in % or (between 0 and 1) ?
I was able to find vlookup alternative in python where I know on which column I can join (ref: vlookup in Pandas using join) But I am not certain against which column the second data frame I'll have the specific match (I want vlookup against each and every column in second DF and want to find similarity ).
df.merge(df1, on='id', how='left')
Ex 1:
id name flag
128 shyam T
129 ram F
130 alex F
131 chinming F
132 jose T
133 khader T
Ex 2:
ex_id hig
129 FULL
130 LOW
133 MID
Ex 3 :
c_id loc
129 hy
132 tx
134 ca
I am not sure on what I'd to join with either of two data frames listed above, but I want to find a relationship or similarity between different columns across data frames of Ex 1.