Skip to main content

A package for analyzing CSV files and generating summary reports in HTML

Project description

Davis Summary VAC 📊✨

A comprehensive tool for CSV analysis with automated HTML reporting.

PyPI version License: MIT Python version

Overview

  • davis-summary-vac is a light weight Python package that analyzes CSV files and generates a detailed HTML report.
  • It offers a summary of both numeric and non-numeric columns, detecting potential outliers and providing insights into your data. Whether you're a data scientist, analyst, or just someone exploring data, this tool simplifies the analysis process and presents it in a visually appealing format.

Features 🌟

  • 📊 Detailed summary of numeric columns:
    • Count, Minimum, Maximum, Mean, Median, Standard Deviation
    • Variance, Quartiles, Interquartile Range (IQR)
    • Detection of potential outliers
  • 🛠️ Analysis of non-numeric columns:
    • Unique values
    • Value counts of the top items
  • 🖥️ Automatically generates a structured HTML report with tables and highlights.
  • 📝 User-friendly interface for quick and easy CSV file analysis.

Installation 🚀

Ensure you have Python 3.6 or higher installed. Then, use pip to install the package:

pip install davis-summary-vac

Usage 🖥️

To analyze a CSV file and generate an HTML report, run the following command:

davis-summary-vac <path_to_your_csv_file> --output <output_html_file>
Arguments:
<path_to_your_csv_file>: The path to the CSV file you want to analyze.
--output (optional): The path to save the generated HTML report. Default is analysis_report.html.

Example:

davis-summary-vac data.csv --output my_report.html

Output Example 📄 After running the command, an HTML report will be generated containing:

Numeric Columns Summary: Statistical metrics like mean, median, standard deviation, and outlier detection. Non-Numeric Columns Summary: Unique value counts and the top frequent items. Here's a sample snapshot of what the generated report looks like:

API Usage (In Python Scripts) If you'd like to use this package programmatically within a Python script:

from davis_summary_vac import analyze_csv, generate_summary, generate_html_report

data = analyze_csv('data.csv')
summary = generate_summary(data)
html_report = generate_html_report(data, summary)

with open('output.html', 'w') as file:
    file.write(html_report)
    

Dependencies 📦

  • Python 3.6+
  • csv
  • statistics
  • math
  • base64
  • argparse
  • All dependencies are included with Python's standard library, making it lightweight and easy to use.

Contributing 🤝

We welcome contributions to improve this package! If you find a bug or have suggestions for new features:

Fork the repository.

  • Create a new branch (feature/my-feature).
  • Commit your changes.
  • Push to the branch.
  • Open a Pull Request.

License 📄

This project is licensed under the MIT License - see the LICENSE file for details.

Author ✍️

  • Developed by the Visionary Arts Company (VAC).
  • Stay connected and explore more at wearevac.github.io.
    If you enjoyed this package, please give it a ⭐ on GitHub!

Support 💬

If you have any questions, issues, or suggestions, please feel free to reach out by opening an issue on the GitHub repository or by contacting us directly via the website.

Happy Analyzing! 📊🎉

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

davis_summary_vac-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

davis_summary_vac-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file davis_summary_vac-0.1.1.tar.gz.

File metadata

  • Download URL: davis_summary_vac-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for davis_summary_vac-0.1.1.tar.gz
Algorithm Hash digest
SHA256 91c230c5bf74ceb26dc21c390f8f6a90c6244c53689ece83b7d5f1ad32eeaa26
MD5 40cf1474134f2c43a7e63ef1abc6aa05
BLAKE2b-256 f7d38688b8083568d15be76bd6a078cbfa788aaa7217fcd55fee0ad606f7e626

See more details on using hashes here.

File details

Details for the file davis_summary_vac-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for davis_summary_vac-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ac11a23d94a46cbb1ba88ca57df73a6ea67da07ef529524d6e19ded77584c3b
MD5 313de574090c56cc0908fc3689056400
BLAKE2b-256 e4b04cad07eed56c0e4b20b770c9869b1bfd13ee3f9ede68626bdf1ffcf60f4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page