Skip to content

Commit

Permalink
Fix nba example
Browse files Browse the repository at this point in the history
  • Loading branch information
picklelo committed Oct 6, 2023
1 parent 88f95e9 commit 590e968
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nba/nba/nba.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
)


Expand Down

0 comments on commit 590e968

Please sign in to comment.