Mofe commited on
Commit
885f549
1 Parent(s): 153ce9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -63,7 +63,7 @@ def load_df(data_file: os.PathLike):
63
  # df['year'] = pd.to_datetime(df['year'])
64
  # df = df.sort_values('year', ascending=True)
65
  # df['year'] = df['year'].dt.strftime('%Y')
66
- df['year'] = df['year'].astype(int)
67
 
68
  return df
69
 
@@ -93,8 +93,8 @@ with st.sidebar:
93
  value=(str(min_year), str(max_year)),
94
  )
95
 
96
- # start_year = 1997
97
- # end_year = 2023
98
  df_mask = (DF["year"] >= start_year) & (DF["year"] <= end_year)
99
 
100
  if author_names:
 
63
  # df['year'] = pd.to_datetime(df['year'])
64
  # df = df.sort_values('year', ascending=True)
65
  # df['year'] = df['year'].dt.strftime('%Y')
66
+ #df['year'] = df['year'].astype(int)
67
 
68
  return df
69
 
 
93
  value=(str(min_year), str(max_year)),
94
  )
95
 
96
+ start_year = int(start_year)
97
+ end_year = int(end_year)
98
  df_mask = (DF["year"] >= start_year) & (DF["year"] <= end_year)
99
 
100
  if author_names: