A data description language for describing and validating the structure of tabular and array data. Current version is 0.5.2. The library is in maintenance mode; no active development expected.
pip install datashape==0.5.2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Define a data shape and validate a numpy array against it.
Update shape strings to use 'var * type', e.g., 'var * int32' instead of 'var int32'.
Replace 'from datashape.predicates import isrecord' with 'from datashape import isrecord'.
Wrap match() in a try-except block for type validation, or use 'validate()' method if available (not in 0.5.2).