Feliks Zaslavskiy commited on
Commit
c5aca96
·
1 Parent(s): f6eaa62

remove commas between City State Zip

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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)