temporian icon indicating copy to clipboard operation
temporian copied to clipboard

Feature: timestamp_in operator

Open javiber opened this issue 11 months ago • 2 comments

We can already do this with the existing operators but it's not easy to discover for new users, for instance, if you have an EventSet with daily sales and another with the holidays, you can do

days_since_last_holiday = holidays.propagate(daily_sales).since_last(sampling=daily_sales)
is_holiday = tp.equal(days_since_last_holiday, 0).rename('is_holiday')

We want to create a new operator to calculate whether the timestamp of a given EventSet is present in another like this:

is_holiday = daily_sales.timestamp_in(holidays, margin: tp.Duration = tp.duration.shortest)

javiber avatar Mar 12 '24 12:03 javiber

can i work on this?

akshatvishu avatar Mar 19 '24 13:03 akshatvishu

Hi @akshatvishu, All yours!

javiber avatar Mar 19 '24 17:03 javiber