zavavan commited on
Commit
ac5ea84
·
verified ·
1 Parent(s): 34f85e7

Upload dashboard.py

Browse files
Files changed (1) hide show
  1. dashboard.py +1 -1
dashboard.py CHANGED
@@ -150,7 +150,7 @@ grouping_filtered = pd.read_csv(os.path.join(data_folder, 'dna_relations.tsv'),
150
  ################################# CREATE CHARTS ############################
151
  def create_publication_curve_chart():
152
  total_publications_time_indexed.id = np.log1p(total_publications_time_indexed.id)
153
- country_publications_time_indexed = country_publications_time_indexed.applymap(lambda x: np.log1p(x) if np.issubdtype(type(x), np.number) else x)
154
  curve_total = hv.Curve((total_publications_time_indexed.index, total_publications_time_indexed.id), 'Time', 'Publication Counts (log)',label='Total')
155
  #Overlay the line plots
156
  overlay = curve_total
 
150
  ################################# CREATE CHARTS ############################
151
  def create_publication_curve_chart():
152
  total_publications_time_indexed.id = np.log1p(total_publications_time_indexed.id)
153
+ country_publications_time_indexed.applymap(lambda x: np.log1p(x) if np.issubdtype(type(x), np.number) else x)
154
  curve_total = hv.Curve((total_publications_time_indexed.index, total_publications_time_indexed.id), 'Time', 'Publication Counts (log)',label='Total')
155
  #Overlay the line plots
156
  overlay = curve_total