numpy-dtype-utils
Advanced data type handling and dataset utilities for NumPy.
Features
- Efficient Data Loading: Optimized loading for structured datasets.
- DType Inspection: utilities to analyze numpy dtypes (inspect.py).
- Safe Type Casting: Robust type conversion and promotion helpers (cast.py).
- Data Cleaning Pipelines: Streamlined handling of missing values, outliers, and duplicates.
- Visualization Tools: Integrated plotting for correlation matrices and distributions.
- Clustering Support: K-means clustering for spatial data analysis.
Installation
pip install numpy-dtype-utils
Usage
from numpy_dtype_utils import Dataset, get_dtype_info, safe_cast
import numpy as np
# --- Dataset Utility ---
# Initialize dataset loader
dataset = Dataset("/path/to/data")
# Load and clean data
dataset.load(max_days=5).clean(remove_outliers=True)
# Visualize distributions
dataset.plot_distributions()
# --- Type Inspection ---
dt_info = get_dtype_info('float32')
print(dt_info) # {'name': 'float32', 'itemsize': 4, ...}
# --- Safe Casting ---
arr = np.array([1, 2, 3], dtype='int32')
casted = safe_cast(arr, 'float64')
License
MIT
Release files for numpy-dtype-utils 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| numpy_dtype_utils-0.3.4.tar.gz | 61.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| numpy_dtype_utils-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 130.6 kB
Release files / numpy_dtype_utils-0.3.4.tar.gz
| Download URL | numpy_dtype_utils-0.3.4.tar.gz |
|---|---|
| Size | 61.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17f211932b5e3db8df0af40f288b7268c0e91b51c412755babdaf3a160569833
|
|
BLAKE2b-256 checksum How to use checksums |
2532a740532725d99b6f827be46ba643beccf1e8a45311e34740476242001a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / numpy_dtype_utils-0.3.4-py3-none-any.whl
| Download URL | numpy_dtype_utils-0.3.4-py3-none-any.whl |
|---|---|
| Size | 69.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32fb50f568e65d76364356393236b99b3205538279b44f9f62dccafff1921b48
|
|
BLAKE2b-256 checksum How to use checksums |
e265e75a1a2bfa31f8ae921d76ad4d25d0cb85a9d4296986e24196f3786051b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|