diff --git a/nba/nba/nba.py b/nba/nba/nba.py index a8a368d2..410aa0f2 100644 --- a/nba/nba/nba.py +++ b/nba/nba/nba.py @@ -13,10 +13,11 @@ class State(rx.State): """The app state.""" + # Filters to apply to the data. position: str college: str - age: list = [0, 50] - salary: list = [0, 25000000] + age: tuple[int, int] = (0, 50) + salary: tuple[int, int] = (0, 25000000) @rx.var def df(self) -> pd.DataFrame: @@ -68,10 +69,7 @@ def hist_fig(self) -> go.Figure: return go.Figure() else: return px.histogram( - nba, - x="Age", - y="Salary", - title="Age/Salary Distribution" + nba, x="Age", y="Salary", title="Age/Salary Distribution" )