is_quantity_dtype

caqtus.analysis.units.is_quantity_dtype(dtype: DataType) bool

Check if a dtype is a QuantityDType.

Parameters:

dtype – the dtype to check.

Returns:

True if the dtype is a polars.Struct with two fields, magnitude and units, False otherwise.