DataProperty is a Python library designed to extract and analyze properties from various data types, including numbers, strings, and dates. It provides functionalities to determine characteristics like type, alignment, width, and digit counts for individual data points or entire matrices. The library is actively maintained, with version 1.1.0 released recently, and it has a regular release cadence addressing bug fixes, performance, and Python version compatibility.
pip install datapropertyVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to use `DataPropertyExtractor` to process a matrix of mixed data types, extract properties for each column, and print the results.
Upgrade your Python environment to version 3.9 or newer to use `dataproperty` v1.0.2 and later.
Upgrade your Python environment to version 3.7 or newer, or stick to `dataproperty` versions older than 1.0.0.
Remove calls to `set_log_level` and `is_multibyte_str` from your codebase. Refer to the official documentation for alternative logging or string handling.
Review any code that relies on `decimal.getcontext()` affecting `dataproperty`'s internal calculations. Adjust expectations or explicitly manage the context before calls if needed.
Ensure you are using `dataproperty` version 0.54.2 or later if you are processing dictionaries to avoid these issues.
Use the correct lowercase package name in the import statement: `from dataproperty import DataProperty`
Refer to the `dataproperty` documentation to ensure you are accessing a valid attribute or calling an existing method for the `DataProperty` object. For example, to get the ASCII width, use `dp.ascii_width`.
Ensure that any input provided to `dataproperty` functions or methods that expect collections or iterable data types (like lists, tuples, or matrices) is indeed iterable and in the expected format.