Hi. I’ve got two time series, each having one row per timestamp and different columns for each time series.
The first one tells me the assigned number of widgets for a resource at a given time:
timestamp ResourceName Capacity
1 Jan A 10
7 Jan B 5
10 Jan A 15
assignments are infrequent (like once every few days). I’ve got about 3000 resources.
The second one tells much how many widgets are used at the timestamps by how many folks:
timestamp ResourceName WidgetsInUse #users
1 jan 1am A 4 5
15 jan 2am A 3 2
8 jan 1am B 2 10
and so on… utilisation records are very frequent (every 5 minutes actually, close to a million a day).
I’d like to merge those two series to tell on a single row how many widgets are available at a point in time, how many are in use and by how many users. Something like:
timestamp ResourceName WidgetsInUse #users Capacity
1 jan 1am A 4 5 10
15 jan 2am A 3 2 15
8 jan 1am B 2 10 5
essentially adding to each of the million utilization records what is the available capacity for that resource at that point in time.
Any suggestion on how to achieve this?