Joshnicholas commited on
Commit
d5dc8d1
·
verified ·
1 Parent(s): 1281ca5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -64,8 +64,7 @@ def matcher(original=[], lookup=[], outname='Original', ngram_length=3, cutoff=0
64
  )
65
 
66
  # bind columns
67
- # matches = pd.concat([df_orig_name, df_lookups, df_confidence], axis=1)
68
- matches = pd.concat([df_orig_name, df_lookups], axis=1)
69
 
70
  # reorder columns | can be skipped
71
  lookup_cols = list(matches.columns.values)
@@ -79,6 +78,8 @@ def matcher(original=[], lookup=[], outname='Original', ngram_length=3, cutoff=0
79
  matches = matches.loc[matches["Match Confidence"] > cutoff]
80
  matches.sort_values(by=["Match Confidence"], ascending=False, inplace=True)
81
 
 
 
82
  return matches
83
 
84
  def combine(a, b):
 
64
  )
65
 
66
  # bind columns
67
+ matches = pd.concat([df_orig_name, df_lookups, df_confidence], axis=1)
 
68
 
69
  # reorder columns | can be skipped
70
  lookup_cols = list(matches.columns.values)
 
78
  matches = matches.loc[matches["Match Confidence"] > cutoff]
79
  matches.sort_values(by=["Match Confidence"], ascending=False, inplace=True)
80
 
81
+ matches.drop(columns={"Match Confidence"}, inplace=True)
82
+
83
  return matches
84
 
85
  def combine(a, b):