felix commited on
Commit
f101de7
·
2 Parent(s): c96e9d6 c5aca96

Merge remote-tracking branch 'origin/main' into main

Browse files
Files changed (2) hide show
  1. app.py +4 -4
  2. references.md +3 -0
app.py CHANGED
@@ -58,8 +58,8 @@ if uploaded_file is not None:
58
  data_caqh['postalcode'] = data_caqh['postalcode'].astype(str).apply(lambda x: x[:5] + '-' + x[5:] if len(x) > 5 and not '-' in x else x)
59
  data_caqh['full-addr'] = data_caqh['address1'].astype(str) + ', ' \
60
  + np.where(data_caqh['address2'].isnull(), '' , data_caqh['address2'].astype(str)+ ', ') \
61
- + data_caqh['city'].astype(str) + ', '\
62
- + data_caqh['state'].astype(str) + ', ' \
63
  + data_caqh['postalcode'].astype(str)
64
 
65
  st.write(f"CAQH before duplicate removal {len(data_caqh)}")
@@ -75,8 +75,8 @@ if uploaded_file is not None:
75
  + data_ndb['zip_pls_4_cd'].astype(str))
76
 
77
  data_ndb['full-addr'] = data_ndb['adr_ln_1_txt'].astype(str).str.strip() + ', ' \
78
- + data_ndb['cty_nm'].astype(str).str.strip() + ', ' \
79
- + data_ndb['st_cd'].astype(str) + ', ' + data_ndb['zip_cd_zip_pls_4_cd']
80
 
81
  # Calculate similarity For CAQH
82
  num_items = len(data_caqh)
 
58
  data_caqh['postalcode'] = data_caqh['postalcode'].astype(str).apply(lambda x: x[:5] + '-' + x[5:] if len(x) > 5 and not '-' in x else x)
59
  data_caqh['full-addr'] = data_caqh['address1'].astype(str) + ', ' \
60
  + np.where(data_caqh['address2'].isnull(), '' , data_caqh['address2'].astype(str)+ ', ') \
61
+ + data_caqh['city'].astype(str) + ' '\
62
+ + data_caqh['state'].astype(str) + ' ' \
63
  + data_caqh['postalcode'].astype(str)
64
 
65
  st.write(f"CAQH before duplicate removal {len(data_caqh)}")
 
75
  + data_ndb['zip_pls_4_cd'].astype(str))
76
 
77
  data_ndb['full-addr'] = data_ndb['adr_ln_1_txt'].astype(str).str.strip() + ', ' \
78
+ + data_ndb['cty_nm'].astype(str).str.strip() + ' ' \
79
+ + data_ndb['st_cd'].astype(str) + ' ' + data_ndb['zip_cd_zip_pls_4_cd']
80
 
81
  # Calculate similarity For CAQH
82
  num_items = len(data_caqh)
references.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Collect various links and references to useful thing related to project.
2
+
3
+ https://medium.com/streetgroup/a-street-group-address-matching-algorithm-e7e1444767cd