Skip to content
Advertisement

Compute time difference in pandas based on conditions [closed]

I have a following problem. My data has this structure:

JavaScript

I would like to calculate difference in minutes based on:

  1. Name
  2. and Value starts with 1 and ends with 9 or 17.

Desired output is:

JavaScript

I found this, but it did not help me: Time difference in day based on specific condition in pandas

Advertisement

Answer

Solution I come with, but there might be better one:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement