title: Panda dataframe conditional change
body: <p>I'm working on csv time series data, which shows count of step per some time frame. Once the step count is exceeding 65535, it will count start from 0, etc. However since not all the dataset has 65535 count (some goes from 65530, then 5, if they made several steps on the time frame), I can't find a good way to handle it so that every 0 after 6553x will change to 65536.. etc.</p>
  
  <pre><code>step    realstep
  65531     65531
  65533     65533
  65534     65534
  2         65538
  4         65540
  </code></pre>
  
  <p>I'm trying to count the real step in order to get their difference (e.g step/minute).</p>