title: How can I check, given a data frame that the values of a column are in increasing order without any missing number?
body: <p>I have a data frame that has values like this :</p>
  <pre><code>Number 
  1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  12
  13
  14
  15
  16
  18
  20
  21
  22
  </code></pre>
  <p>By using the sorted function of pandas, I have values that are increasing but I want to check and spot if there are any missing values and in that case, report the start and end of the consecutive value set.For example, in this case, it should return [1,10],[12,16],[20,22]. I want to chuck here for example 18 even though it's there but it's not consecutive. Any lead on how to approach this problem?</p>