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.2.tar.gz (4.1 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.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csv_insights-1.0.2.tar.gz
  • Upload date:
  • Size: 4.1 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.2.tar.gz
Algorithm Hash digest
SHA256 9e465a8e53e75b750062d2b36473b2bba0375bd88883b567e6c3411591035edf
MD5 e676c5e6d7fa5e1693d92c91b0f0c83a
BLAKE2b-256 7d74ba2eecdc33b62acd43a5bf32ef0fdfdce604b0a32a168ba6857307116cb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csv_insights-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb1cbc3bc9e7e4188c9d716ef46572a00ce6caab27b1534cab7d9adbfffa51f
MD5 cd0b6013d820db88ec8145f547a406ab
BLAKE2b-256 168159cdbe489a2f786503b6a2a6fef3d34017f7a47517182df9c234c23e8d12

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.4

2 files

1.0.3

2 files

This release

1.0.2 This release

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