Advanced data type handling, gaze estimation, and dataset utilities for NumPy.
Project description
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
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
numpy_dtype_utils-0.3.4.tar.gz
(61.6 kB
view details)
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 numpy_dtype_utils-0.3.4.tar.gz.
File metadata
- Download URL: numpy_dtype_utils-0.3.4.tar.gz
- Upload date:
- Size: 61.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17f211932b5e3db8df0af40f288b7268c0e91b51c412755babdaf3a160569833
|
|
| MD5 |
57678adec8dfb10e0ba5582047939c50
|
|
| BLAKE2b-256 |
2532a740532725d99b6f827be46ba643beccf1e8a45311e34740476242001a63
|
File details
Details for the file numpy_dtype_utils-0.3.4-py3-none-any.whl.
File metadata
- Download URL: numpy_dtype_utils-0.3.4-py3-none-any.whl
- Upload date:
- Size: 69.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32fb50f568e65d76364356393236b99b3205538279b44f9f62dccafff1921b48
|
|
| MD5 |
e4bf27e3d84e18868cbaae2b4a5efc70
|
|
| BLAKE2b-256 |
e265e75a1a2bfa31f8ae921d76ad4d25d0cb85a9d4296986e24196f3786051b3
|