create new column in dataframe using fuzzywuzzy
<p>I have a dataframe in <code>pandas</code> where I am using <code>fuzzywuzzy</code> package in python to match first column in the dataframe with second column.</p>

<p>I have defined a function to create an output with first column, second column and partial ratio score. But it is not working.</p>

<p>Could you please help</p>

<pre><code>import csv
import sys
import os
import numpy as np
import pandas as pd
from fuzzywuzzy import fuzz
from fuzzywuzzy import process

def match(driver):
    driver["score"]=driver.apply(lambda row: fuzz.partial_ratio(row driver[driver.columns[0]], driver[driver.columns[1]]), axis=1)
    print(driver)
    return(driver)
</code></pre>

<p>Regards</p>

<p>-Abacus  </p>