ProfessorLeVesseur
commited on
Commit
•
f238172
1
Parent(s):
ecb9b1c
Update main.py
Browse files
main.py
CHANGED
@@ -62,8 +62,14 @@ def main():
|
|
62 |
|
63 |
# Filter data if date range is selected
|
64 |
if date_option == "Date Range":
|
|
|
|
|
|
|
|
|
|
|
65 |
df = df[(df['Date of Session'] >= start_date) & (df['Date of Session'] <= end_date)]
|
66 |
|
|
|
67 |
st.subheader("Uploaded Data")
|
68 |
st.write(df)
|
69 |
|
|
|
62 |
|
63 |
# Filter data if date range is selected
|
64 |
if date_option == "Date Range":
|
65 |
+
# Convert start_date and end_date to datetime
|
66 |
+
start_date = pd.to_datetime(start_date)
|
67 |
+
end_date = pd.to_datetime(end_date)
|
68 |
+
|
69 |
+
# Filter the DataFrame based on the selected date range
|
70 |
df = df[(df['Date of Session'] >= start_date) & (df['Date of Session'] <= end_date)]
|
71 |
|
72 |
+
|
73 |
st.subheader("Uploaded Data")
|
74 |
st.write(df)
|
75 |
|