firqaaa commited on
Commit
b509c86
1 Parent(s): f79a83a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1050,7 +1050,7 @@ if uploaded_files:
1050
  L.append({
1051
  'Title' : concat['title'][0],
1052
  'Author' : concat['authors'][0],
1053
- 'Publisher Name' : concat['publisher'][0],
1054
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1055
  'Genes' : g.upper(),
1056
  'Population' : upper_abbreviation(' '.join(np.unique(concat['population_race'].values.tolist())).title()),
@@ -1067,7 +1067,7 @@ if uploaded_files:
1067
  L.append({
1068
  'Title' : concat['title'][0],
1069
  'Author' : concat['authors'][0],
1070
- 'Publisher Name' : concat['publisher'][0],
1071
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1072
  'Genes' : get_geneName(s.strip()).upper(),
1073
  'Population' : upper_abbreviation(' '.join(np.unique(concat['population_race'].values.tolist())).title()),
 
1050
  L.append({
1051
  'Title' : concat['title'][0],
1052
  'Author' : concat['authors'][0],
1053
+ 'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1054
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1055
  'Genes' : g.upper(),
1056
  'Population' : upper_abbreviation(' '.join(np.unique(concat['population_race'].values.tolist())).title()),
 
1067
  L.append({
1068
  'Title' : concat['title'][0],
1069
  'Author' : concat['authors'][0],
1070
+ 'Publisher Name' : concat['publisher'][0] if 'publisher' in list(concat.columns) else '',
1071
  'Publication Year' : get_valid_year(' '.join(concat['publication_year'].values.tolist())),
1072
  'Genes' : get_geneName(s.strip()).upper(),
1073
  'Population' : upper_abbreviation(' '.join(np.unique(concat['population_race'].values.tolist())).title()),