An interactive web dashboard built with Dash and Python to visualize avocado prices and sales trends across the United States between 2015 and 2018.
- 📈 View the average price and total volume of avocados over time.
- 🌎 Filter by region (Albany, Boston, Los Angeles, etc.).
- 🥑 Filter by type (conventional or organic avocados).
- 🗕️ Select a date range to zoom in on specific time periods.
- 🎨 Simple and clean UI styled with custom fonts and minimal design.
- ⚡ Real-time graph updates based on user selections.
- Python
- Dash (by Plotly)
- Pandas
- HTML/CSS (embedded in Dash components)
.
├── app.py # Main Dash app
├── avocado.csv # Dataset (2015-2018 avocado sales in the US)- Sourced from Kaggle: Avocado Prices
- Contains information on avocado sales such as:
- Average price
- Total volume sold
- Region
- Type (organic or conventional)
- Date
- Load avocado sales data using Pandas.
- Preprocess and sort data by date.
- Build an interactive layout with Dash components:
- Dropdown menus for region and type.
- Date picker for selecting date range.
- Dynamically update graphs based on user selections using Dash Callbacks.
- Visualize:
- Line graph of Average Price over time.
- Line graph of Total Volume Sold over time.
- Clone the repository:
git clone https://github.com/VictoriousWealth/Avocado-Analytics.git
cd Avocado-Analytics- Install dependencies:
pip install pandas dash- Run the app:
python app.py- Visit
http://127.0.0.1:8050/in your browser.
- Add multi-region comparison.
- Enable download of filtered data as CSV.
- Deploy to a cloud platform (e.g., Heroku, AWS, Render).
Feel free to connect with me:
- ✉️ Email: efeoni10@gmail.com
Thanks for visiting Avocado Analytics! 🥑