import dascore as dc
= dc.get_quantity("m")
meters = dc.get_quantity("m/s^2")
accel # This can also convert date times.
= dc.get_quantity(dc.to_timedelta64(200)) many_seconds
get_quantity
get_quantity(
value: None ,
)-> ‘Quantity | None’
Convert a value to a pint quantity.
Parameters
Parameter | Description |
---|---|
value | The value to convert to a quantity. |