Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

β˜• Coffee Sales Prediction & Analysis

πŸ“Œ Project Overview

This project analyzes and predicts coffee sales using historical sales data. It includes data preprocessing, exploratory data analysis (EDA), feature engineering, and machine learning models (Random Forest Regressor) to forecast sales trends. The project also visualizes sales patterns across different time periods and locations.

πŸ“Š Features Implemented

  • Data Cleaning & Preprocessing
    • Handled missing values
    • Extracted Month, Day, Weekday from Date
  • Exploratory Data Analysis (EDA)
    • Sales distribution by country, category, and month
    • Time series analysis of sales trends
  • Machine Learning Model (Random Forest Regressor)
    • Trained on extracted features
    • Evaluated model using MAE & RMSE
    • Optimized using hyperparameter tuning

πŸ“ Dataset

  • The dataset contains historical coffee sales data with columns such as:
    • Date (timestamp of sale)
    • City (sales location)
    • Category (type of coffee product)
    • Sales (final sales amount)

πŸš€ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/yourusername/coffee-sales-prediction.git
cd coffee-sales-prediction

2️⃣ Install Dependencies

pip install -r requirements.txt

3️⃣ Run the Jupyter Notebook

jupyter notebook

Open coffee_sales.ipynb to explore the analysis and model.

πŸ“ˆ Results & Insights

  • Feature Importance Analysis shows Month is the most influential predictor.
  • Actual vs. Predicted Sales Scatter Plot highlights model accuracy.
  • Residual Analysis suggests further improvements needed.

πŸ”₯ Future Improvements

  • Add more features (holiday, promotions, etc.)
  • Test other ML models (XGBoost, LSTM for time series)
  • Deploy model as an API for real-time predictions

πŸ“œ License

This project is open-source and available under the MIT License.

🀝 Contributing

Feel free to submit pull requests and suggestions!


πŸ’‘ Developed by D Rajeev πŸš€

About

Analysis on Basic Coffee Sales in Some Cities

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages