Skip to content
Commit c6cdaac8 authored by Valentin Schneider's avatar Valentin Schneider
Browse files

trace: Improve/fix add_events_deltas()

While we're not supposed to get duplicate timestamps (see
trappy.utils::handle_duplicate_index), these seem to still happen and
they throw pandas.DataFrame.loc[] off balance.

Use diff() + shift() instead of handcrafted equivalents. Performance
difference is insignificant, but at least we rely on a standard pandas
API.
parent e3f6d274
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