How to compare a value in one dataframe to a column in another using fuzzywuzzy ratio
问题 I have a dataframe df_sample with 10 parsed addresses and am comparing it to another dataframe with hundreds of thousands of parsed address records df . Both df_sample and df share the exact same structure: zip_code city state street_number street_name unit_number country 12345 FAKEVILLE FLORIDA 123 FAKE ST NaN US What I want to do is match a single row in df_sample against every row in df , starting with state and take only the rows where the fuzzy.ratio(df['state'], df_sample['state']) > 0