Skip to content
Commit f274d2ac authored by Valentin Schneider's avatar Valentin Schneider Committed by Quentin Perret
Browse files

utils/trace: Add squash_df() method

This method takes in a dataframe with a time delta column (as created by
addEventsDeltas), and slices it to fit within a given interval.

Instead of writing a wall of text, here's what it's doing:

df is:
Time len state
15    1   1
16    1   0
17    1   1
18    1   0
-------------

squash_df(df, 16.5, 17.5) =>

Time len state
16.5  .5   0
17    .5   1

squash_df(df, 16.2, 16.8) =>

Time len state
16.2  .6   0
parent 62d174fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment