faizhalas commited on
Commit
641920f
1 Parent(s): 8964654

Update pages/4 Sunburst.py

Browse files
Files changed (1) hide show
  1. pages/4 Sunburst.py +2 -0
pages/4 Sunburst.py CHANGED
@@ -27,6 +27,8 @@ def get_ext(extype):
27
  @st.cache_data(ttl=3600)
28
  def upload(extype):
29
  papers = pd.read_csv(uploaded_file)
 
 
30
  return papers
31
 
32
  @st.cache_data(ttl=3600)
 
27
  @st.cache_data(ttl=3600)
28
  def upload(extype):
29
  papers = pd.read_csv(uploaded_file)
30
+ if 'Publication Year' in papers.columns:
31
+ papers.rename(columns={'Publication Year': 'Year'}, inplace=True)
32
  return papers
33
 
34
  @st.cache_data(ttl=3600)