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
- Automatically detect column data types:
-
📈 Numeric Statistics
- Calculate statistical summaries for numeric columns:
- Minimum value
- Maximum value
- Mean value
- Calculate statistical summaries for numeric columns:
-
🔤 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
csvstatcommand
- Analyze CSV files directly from the terminal using the
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c67ce3ab1f8e1bd94d77f88ac6147acfd04ce5f9d4f854137c39285ff85f043
|
|
| MD5 |
f679fe6d0eac8ae340b6a7c4845e7972
|
|
| BLAKE2b-256 |
f65ad8167c3f322fee3406eec76fa36574f796682d42797fc0bfd1831d30ba3f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd9f9106da2d473a9f7436667252189d1d35d8f8133104abd5115de328a9538
|
|
| MD5 |
6068231fd10405e2acc2c0e558e97d52
|
|
| BLAKE2b-256 |
03439d82e02d7e091ee528d30d345fed4b8d43918e1840c849a91f6162a99faf
|