From 590e96843f468e0e2ee29aef36dfb68a083cda40 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Fri, 6 Oct 2023 15:26:46 -0700 Subject: [PATCH] Fix nba example --- nba/nba/nba.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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" )