tracinginsights commited on
Commit
d823200
1 Parent(s): 9f864b4

Update pages/Championship_Standings.py

Browse files
Files changed (1) hide show
  1. pages/Championship_Standings.py +10 -2
pages/Championship_Standings.py CHANGED
@@ -1,6 +1,14 @@
1
  import streamlit as st
2
  from repo_directory import Championship_Standings
3
  from repo_directory import button
 
4
 
5
- df = Championship_Standings.get_results()
6
- Championship_Standings.plot(df)
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
  from repo_directory import Championship_Standings
3
  from repo_directory import button
4
+ import numpy as np
5
 
6
+
7
+ # select year
8
+ YEAR = st.selectbox(
9
+ 'Select Year',
10
+ np.arange(2022,1950))
11
+
12
+ df = Championship_Standings.get_results(YEAR)
13
+
14
+ Championship_Standings.plot(df, YEAR)