to_number

function of dascore.proc.resample source

to_number(
    obj: int | float | str | datetime64 | Timestamp | ,
)->

Ensure a scalar or array is a number.

If the input values represents a time or a time-delta, convert it to a an int representing ns.