Skip to content

featurebyte.to_timestamp_from_epoch

to_timestamp_from_epoch(
values: Series
) -> Series

Description

Convert epoch seconds to timestamp values

Parameters

  • values: Series
    Series containing epoch seconds

Returns

  • Series

Raises

  • ValueError
    if input is not numeric

Examples

Create a new column in the GROCERYINVOICE view that represents the timestamp from epoch seconds.

>>> view = catalog.get_view("GROCERYINVOICE")
>>> view["CONVERTED_TIMESTAMP"] = fb.to_timestamp_from_epoch(
...     view["EPOCH_SECOND"]
... )  # doctest: +SKIP