Generic data handling utilities including data splitting and analysis.
Project description
dsr-data-tools
Data analysis and exploration tools for exploratory data analysis (EDA).
Features
- Dataset Analysis: Comprehensive statistical summaries and data quality assessment
- Data Exploration: Tools for understanding data distributions, correlations, and patterns
- Quality Metrics: Missing value detection, data type analysis, and anomaly identification
- Statistically Guided Feature Interactions: Automatic discovery of meaningful feature interactions using Mutual Information and Pearson Correlation
Installation
pip install dsr-data-tools
Usage
import pandas as pd
from dsr_data_tools import analyze_dataset
# Load your data
df = pd.read_csv('data.csv')
# Perform comprehensive analysis
analyze_dataset(df)
Performance
This library is optimized for large-scale data processing using vectorized operations.
-
Vectorized Integer Checks: Optimized from $O(N)$ Python-level application to vectorized modulo operations, resulting in a 5-6× speed increase.
-
Cached Data Scans: Implemented caching for common operations like dropna() and unique() to ensure each data column is scanned as few times as possible, maintaining high efficiency for wide datasets.
Benchmarks
A benchmark script compares per-element apply(is_integer) against a vectorized modulo check for detecting integer-like floats. On large series, the vectorized approach is typically 5–6× faster.
Run via Python:
python scripts/benchmark_integer_checks.py # default size (2,000,000)
python scripts/benchmark_integer_checks.py 5000000 # custom size
Or via Makefile target:
make benchmark # default N=2,000,000
make benchmark N=5000000 # custom size
Requirements
- Python >= 3.10
- pandas
- numpy
- scikit-learn
- dsr-utils
License
MIT License - see LICENSE file for details
Project details
Release history Release notifications | RSS feed
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 dsr_data_tools-0.0.5.tar.gz.
File metadata
- Download URL: dsr_data_tools-0.0.5.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4722d6723a66bfb3cbfa81f2bf629862dc427bbae4742ef3aa835c6b8c0d300
|
|
| MD5 |
0e3e2e977f07d29216542554f57a44bf
|
|
| BLAKE2b-256 |
538de39fe766775fff5863c38cfbf00611c1792e89dbf5f6dd6d307698a2c4c8
|
File details
Details for the file dsr_data_tools-0.0.5-py3-none-any.whl.
File metadata
- Download URL: dsr_data_tools-0.0.5-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c60add1def87c08296d52ba046f44d510db7f38885bf6e3cd4ea7a8d89794df
|
|
| MD5 |
8714cce5299c6e7f87249ca6ae4e3f60
|
|
| BLAKE2b-256 |
8b7cf2045531cc3fe4f0843f3da2f141cf062da202267079f62087a848995345
|