So I am fuzzy matching two dataframes and want to find a match from the right table if it has a score of over 80. So for the ones that do not find a match over 80 it ends up with Nonetype which causes the script to fail. How can I handle this? I still want to know if it didn't find a match, so if I can display it as "None" or just blank I would prefer that.
str2Match['key'] = str2Match.apply.(lambda x: process.extractOne(x['PRODUCT_NAME'], strOptions['REFERENCE_NAME'], score_cutoff=80)[0], axis=1)