Skip to content

temporian.EventSet.unique_timestamps #

unique_timestamps() -> EventSetOrNode

Removes events with duplicated timestamps from an EventSet.

Returns a feature-less EventSet where each timestamp from the original one only appears once. If the input is indexed, the unique operation is applied independently for each index.

Usage example
>>> a = tp.event_set(timestamps=[5, 9, 9, 16], features={'f': [1,2,3,4]})
>>> b = a.unique_timestamps()
>>> b
indexes: []
features: []
events:
    (3 events):
        timestamps: [ 5. 9. 16.]
...

Returns:

Type Description
EventSetOrNode

EventSet without features with unique timestamps in the input.