ccm commited on
Commit
f58fdc6
1 Parent(s): 25ca557

Actual gender model options

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -35,10 +35,12 @@ class References(object):
35
  if ethnicity_model == "ethnicolr - census data":
36
  other = ethnicolr.pred_census_ln(self.raw_results, 'Last Name', 2010)
37
  self.raw_results['Most Likely Ethnicity'] = other['race']
 
38
  elif ethnicity_model == "ethnicolr - wikipedia data":
39
  other = ethnicolr.pred_wiki_name(self.raw_results, 'Last Name', 'First Name')
40
  self.raw_results['Most Likely Ethnicity'] = other['race']
41
  self.raw_results.drop(columns=['__name'])
 
42
  elif ethnicity_model == "ethnicolr - Florida registration data":
43
  other = ethnicolr.pred_fl_reg_name_five_cat(self.raw_results, 'Last Name', 'First Name')
44
  self.raw_results['Most Likely Ethnicity'] = other['race']
 
35
  if ethnicity_model == "ethnicolr - census data":
36
  other = ethnicolr.pred_census_ln(self.raw_results, 'Last Name', 2010)
37
  self.raw_results['Most Likely Ethnicity'] = other['race']
38
+
39
  elif ethnicity_model == "ethnicolr - wikipedia data":
40
  other = ethnicolr.pred_wiki_name(self.raw_results, 'Last Name', 'First Name')
41
  self.raw_results['Most Likely Ethnicity'] = other['race']
42
  self.raw_results.drop(columns=['__name'])
43
+
44
  elif ethnicity_model == "ethnicolr - Florida registration data":
45
  other = ethnicolr.pred_fl_reg_name_five_cat(self.raw_results, 'Last Name', 'First Name')
46
  self.raw_results['Most Likely Ethnicity'] = other['race']