Cricket stats explorer web app
A web app where anyone can pick a player or team and see career stats, form and head-to-head records.
Intermediateโฑ 8โ12 hours๐ช 7 stepsPythonStreamlitpandasPlotly
What you'll learn
- โTurning analysis code into an app
- โEfficient filtering of large data
- โMulti-page Streamlit apps
What you'll build
- โPlayer page: runs, strike rate, season trend
- โTeam page: wins by season and venue
- โHead-to-head between two teams
- โShareable links via query params
Step-by-step guide
- 1
Reuse your analysis
Start from the IPL analysis project and move the logic into functions in stats.py.
- 2
Load once
Read data in a @st.cache_data function; convert to categories to save memory.
- 3
Pages
Create pages/1_Player.py, 2_Team.py, 3_Head_to_head.py.
- 4
Player page
Searchable selectbox; season-by-season runs line chart; dismissal types pie.
- 5
Head-to-head
Two selectboxes; wins, last 5 results, highest scores.
- 6
Shareable state
Read and write st.query_params so a URL opens the same selection.
- 7
Deploy
Streamlit Community Cloud; add a data source credit on every page.
๐ Make it stand out
- +Player comparison radar chart
- +Fantasy team suggestions
- +Update with new seasons automatically