kargaranamir commited on
Commit
8323cf4
1 Parent(s): 9034973

refactor keys.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,11 +46,11 @@ def render_site_table(isocode):
46
  df_urls['Number of Links'] = df_urls['Links'].apply(len)
47
  df_urls = df_urls.sort_values(by='Number of Links', ascending=False)
48
  df_urls = df_urls.reset_index(drop=True)
49
- df_urls['Number of Links'] = df_urls.apply(lambda row: '<a href="/?isocode={}&siteurl={}" target="_self">{}</a>'.format(isocode, row['Site URL'], row['Number of Links']) if row['Number of Links'] else row['Number of Links'], axis=1)
50
  df_urls['Site URL'] = df_urls['Site URL'].apply(lambda url: f'<a href="{url}">{url}</a>')
51
 
52
  # Display the table
53
- df_urls = df_urls[['Site Name', 'Site URL', 'Category', 'Number of Links', 'Possible Parallel Languages', 'Confidence', 'Info']]
54
  st.write(df_to_html(df_urls), unsafe_allow_html=True)
55
 
56
 
 
46
  df_urls['Number of Links'] = df_urls['Links'].apply(len)
47
  df_urls = df_urls.sort_values(by='Number of Links', ascending=False)
48
  df_urls = df_urls.reset_index(drop=True)
49
+ df_urls['Number of Links'] = df_urls.apply(lambda row: '<a href="/?isocode={}&siteurl={}" target="_self">{}</a>'.format(isocode, row['Site URL'], row['Number of Links']), axis=1)
50
  df_urls['Site URL'] = df_urls['Site URL'].apply(lambda url: f'<a href="{url}">{url}</a>')
51
 
52
  # Display the table
53
+ df_urls = df_urls[['Site Name', 'Site URL', 'Category', 'Number of Links', 'Possible Parallel Languages']]
54
  st.write(df_to_html(df_urls), unsafe_allow_html=True)
55
 
56