Skip to main content

CSV Insights

A lightweight Python package for CSV profiling and data analysis.
csvstat helps users quickly understand the structure and content of CSV files by generating useful statistics, detecting data types, and identifying missing values.

Features

  • 📊 CSV File Profiling

    • Analyze CSV files and generate a structured summary
    • Get total number of rows and columns
  • 🔍 Column Analysis

    • Automatically detect column data types:
      • Numeric columns
      • Text columns
    • Identify missing values in each column
  • 📈 Numeric Statistics

    • Calculate statistical summaries for numeric columns:
      • Minimum value
      • Maximum value
      • Mean value
  • 🔤 Text Analysis

    • Find the most frequent values in text columns
    • Generate top occurring values with their frequency
  • 💻 Command Line Interface

    • Analyze CSV files directly from the terminal using the csvstat command

Installation

Install CSV Insights from PyPI:

pip install csv-insights

Usage

Python API

from csvstat import analyze_csv

result = analyze_csv("sample.csv")

print(result)

Command Line Interface

Analyze CSV files directly from the terminal:

csvstat sample.csv

Output

CSV Insights provides:

  • Total number of rows and columns
  • Column data type detection
  • Missing value information
  • Numeric statistics:
    • Minimum value
    • Maximum value
    • Mean value
  • Most frequent text values

Testing

Run tests using pytest:

pytest

Author

Smriti

Download files

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

Source Distribution

csv_insights-1.0.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

csv_insights-1.0.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file csv_insights-1.0.3.tar.gz.

File metadata

  • Download URL: csv_insights-1.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for csv_insights-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d5df1f60bc16f5ee2cf0190696bb8b9bf0b3d6796b32ec695153abd8dc6261ba
MD5 6f7502cac4d9e69475786c0b87839757
BLAKE2b-256 8eaa3fcea2ba855cc201a0b3e080d60a276ec812174d9bf1c617829b03d27fed

See more details on using hashes here.

File details

Details for the file csv_insights-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: csv_insights-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.2

File hashes

Hashes for csv_insights-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ed2efdde7d01654b1217b528bb8868fe3be66b317ac1df758841e9df28a440bf
MD5 45194da1cc2aaa1ebeb64215eb7f5a83
BLAKE2b-256 666ee8314477f68af65f9897dc99e695865fd55b31451a2c5ab55a497ad27e79

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.4

2 files

This release

1.0.3 This release

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page