https://github.com/hitthecodelabs/pharmasalespredictor
Comprehensive Jupyter notebook designed for analyzing and predicting pharmaceutical sales with PySpark
https://github.com/hitthecodelabs/pharmasalespredictor
forecasting pandas py-spark python sales-forecasting spark
Last synced: about 2 months ago
JSON representation
Comprehensive Jupyter notebook designed for analyzing and predicting pharmaceutical sales with PySpark
- Host: GitHub
- URL: https://github.com/hitthecodelabs/pharmasalespredictor
- Owner: hitthecodelabs
- License: mit
- Created: 2023-11-11T23:28:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-11T23:40:57.000Z (over 2 years ago)
- Last Synced: 2025-06-11T08:52:26.270Z (12 months ago)
- Topics: forecasting, pandas, py-spark, python, sales-forecasting, spark
- Language: Jupyter Notebook
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PharmaSalesPredictor
## Overview
The `PharmaSalesPredictor` is a comprehensive Jupyter notebook designed for analyzing and predicting pharmaceutical sales. Built with PySpark, this notebook employs data processing, feature engineering, and machine learning techniques to forecast sales trends based on historical data.
## Features
- Data Cleaning and Preprocessing
- Exploratory Data Analysis (EDA) on pharmaceutical sales data
- Feature Engineering for predictive modeling
- Implementation of Linear Regression for sales prediction
- Prediction on both aggregate and individual product levels
- Exporting prediction results for further analysis
## Installation and Usage
To use this notebook, you must have PySpark installed in your environment. The notebook is primarily intended for Google Colab, but it can be adapted for other environments that support PySpark.
### Steps for Installation:
1. Clone the repository:
```bash
git clone https://github.com/[YourUsername]/PharmaSalesPredictor.git
```
2. Navigate to the cloned directory:
```bash
cd PharmaSalesPredictor
```
3. Open the `PharmaSalesPredictor.ipynb` notebook in Jupyter or Google Colab.
### Dependencies
- PySpark
- Pandas
- Matplotlib (optional, for extended data visualization)
## Data
The dataset used in the notebook should be in CSV format and contain historical sales data of pharmaceutical products. The data preprocessing steps are tailored to handle specific data formats as detailed in the notebook.
## Structure
- Data loading and preprocessing
- Exploratory analysis
- Data transformation and feature extraction
- Model training and evaluation
- Sales prediction and output generation
## Authors
- Jean Paul, from Hit the Code Labs
## Contributing
Contributions to the `PharmaSalesPredictor` are welcome. Please ensure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)