Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Data_Science/Automated EDA Report Generator/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Automated EDA Report Generator

A simple tool to generate an HTML EDA (Exploratory Data Analysis) report from a CSV file.

Features:-
Generates HTML report from CSV
Uses pandas and ydata-profiling
Easy to run locally or automate with n8n

*INSTALLATION*
git clone https://github.com/<your-username>/automated-eda-report-generator.git
cd automated-eda-report-generator
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
30 changes: 30 additions & 0 deletions Data_Science/Automated EDA Report Generator/generate_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import pandas as pd # type: ignore
from ydata_profiling import ProfileReport
import os
import argparse

# Default input/output
DEFAULT_INPUT = 'data.csv'
DEFAULT_OUTPUT = 'report.html'

# Parse command-line arguments
parser = argparse.ArgumentParser(description="Generate HTML EDA report from CSV")
parser.add_argument("--input", "-i", default=DEFAULT_INPUT, help="Path to CSV file")
parser.add_argument("--output", "-o", default=DEFAULT_OUTPUT, help="Path to save HTML report")
args = parser.parse_args()

input_path = args.input
output_path = args.output

# Check input file exists
if not os.path.exists(input_path):
print(f"Input file '{input_path}' not found.")
exit(1)

# Read CSV and generate report
df = pd.read_csv(input_path)
profile = ProfileReport(df, title="Automated EDA Report", explorative=True)
os.makedirs(os.path.dirname(output_path) or '.', exist_ok=True)
profile.to_file(output_path)

print(f"✅ Report generated: {output_path}")
Loading