Skip to main content

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

Metadata

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)

Source distribution for numpy-dtype-utils 0.3.4
File Size Uploaded Provenance Actions
numpy_dtype_utils-0.3.4.tar.gz 61.6 kB Without provenance Details for numpy_dtype_utils-0.3.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for numpy-dtype-utils 0.3.4
File Interpreter ABI Platform Actions
numpy_dtype_utils-0.3.4-py3-none-any.whl Python 3 none any Details for numpy_dtype_utils-0.3.4-py3-none-any.whl

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

Security for numpy-dtype-utils 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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