This project generates an automated PDF report from a CSV dataset using Python. It includes summary statistics, data visualizations (bar charts), and tabular insights, suitable for real-world reporting needs.
- β
Reads data from
electronics.csv
- π Generates bar charts using
matplotlib
- Brands vs Sales
- Category vs Sales
- π Calculates summary statistics:
- Mean, Median, Min, Max, Standard Deviation
- π§Ύ Compiles everything into a professional
Report.pdf
- π Virtual environment included (
env/
)
pdfreportgenerator/
β
βββ env/ # Python virtual environment
βββ images/ # Auto-generated charts saved here
βββ electronics.csv # Input dataset (electronics sales)
βββ report_generator.py # Main script to generate PDF
βββ Report.pdf # Final generated report
βββ README.md # This file
- Python 3.x
- matplotlib
- pandas
- fpdf
Install all dependencies using:
pip install -r requirements.txt
Activate virtual environment:
.\env\Scripts\activate # Windows
Run the script:
python report_generator.py
Your Report.pdf will be generated with visualizations and stats.