Skip to content

Utilities

Length

from tempora.utils import Length

Represents a time length or number of rows.

Length(
    value: int | float | dt.timedelta | np.timedelta64 | pd.Timedelta,
    in_rows: bool = False
)

Parameters

Name Description
value Time delta value (numeric or time delta type).
in_rows If True, value is interpreted as row count.