๐ŸŽ™ Free live masterclass ยท Sun, 29 Nov, 7:00 pm IST ยท Java Full Stack roadmap Register free โ†’
Skills101

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. 1

    Reuse your analysis

    Start from the IPL analysis project and move the logic into functions in stats.py.

  2. 2

    Load once

    Read data in a @st.cache_data function; convert to categories to save memory.

  3. 3

    Pages

    Create pages/1_Player.py, 2_Team.py, 3_Head_to_head.py.

  4. 4

    Player page

    Searchable selectbox; season-by-season runs line chart; dismissal types pie.

  5. 5

    Head-to-head

    Two selectboxes; wins, last 5 results, highest scores.

  6. 6

    Shareable state

    Read and write st.query_params so a URL opens the same selection.

  7. 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