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.
Loading
Please register or sign in to comment