Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
97 |
-
|
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:
|