Skip to content

VictoriousWealth/Avocado-Analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🥑 Avocado Analytics Dashboard

An interactive web dashboard built with Dash and Python to visualize avocado prices and sales trends across the United States between 2015 and 2018.


🚀 Features

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

🛠️ Built With

  • Python
  • Dash (by Plotly)
  • Pandas
  • HTML/CSS (embedded in Dash components)

📂 Project Structure

.
├── app.py         # Main Dash app
├── avocado.csv    # Dataset (2015-2018 avocado sales in the US)

📊 Dataset

  • Sourced from Kaggle: Avocado Prices
  • Contains information on avocado sales such as:
    • Average price
    • Total volume sold
    • Region
    • Type (organic or conventional)
    • Date

🧠 How It Works

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

🚀 Running Locally

  1. Clone the repository:
git clone https://github.com/VictoriousWealth/Avocado-Analytics.git
cd Avocado-Analytics
  1. Install dependencies:
pip install pandas dash
  1. Run the app:
python app.py
  1. Visit http://127.0.0.1:8050/ in your browser.

🌟 Future Improvements

  • Add multi-region comparison.
  • Enable download of filtered data as CSV.
  • Deploy to a cloud platform (e.g., Heroku, AWS, Render).

💋 Contact

Feel free to connect with me:


Thanks for visiting Avocado Analytics! 🥑


About

An interactive web application built with Dash to visualize avocado sales data in the U.S. (2015-2018). Features dynamic filtering by region, type, and date, with real-time graphs for average price and volume. Includes custom styling for an intuitive and user-friendly experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors