我想将一列的数据帧与多列的另一数据帧进行比较,并返回具有最大匹配百分比的列的标题。
I am not able to find any match functions in pandas. First data frame first column :
cars
----
swift
maruti
wagonor
hyundai
jeep
Run Code Online (Sandbox Code Playgroud)
First data frame second column :
bikes
-----
RE
Ninja
Bajaj
pulsar
Run Code Online (Sandbox Code Playgroud)
one column data frame :
words
---------
swift
RE
maruti
waganor
hyundai
jeep
bajaj
Run Code Online (Sandbox Code Playgroud)
Desired output :
100% match header - cars
Run Code Online (Sandbox Code Playgroud)