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.4.tar.gz (4.3 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.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csv_insights-1.0.4.tar.gz
  • Upload date:
  • Size: 4.3 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.4.tar.gz
Algorithm Hash digest
SHA256 8c67ce3ab1f8e1bd94d77f88ac6147acfd04ce5f9d4f854137c39285ff85f043
MD5 f679fe6d0eac8ae340b6a7c4845e7972
BLAKE2b-256 f65ad8167c3f322fee3406eec76fa36574f796682d42797fc0bfd1831d30ba3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csv_insights-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fdd9f9106da2d473a9f7436667252189d1d35d8f8133104abd5115de328a9538
MD5 6068231fd10405e2acc2c0e558e97d52
BLAKE2b-256 03439d82e02d7e091ee528d30d345fed4b8d43918e1840c849a91f6162a99faf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 files

1.0.3

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