title: Mark Duplicated Rows & Add Range Numbers for Duplicate Rows, Python 3.6
body: <p>Data: </p>
  
  <pre><code>Data = pd.DataFrame([['1', '2', '3', '4'], ['4', '3', '2', '1'], ['1', '2', '3', '4'], ['4', '3', '2', '1'], ['1', '2', '3', '4'], ['3', '5', '2', '6'], ['10', '9', '8', '7'], ['5', '6', '7', '3'], ['10', '9', '8', '7']], columns=['F1', 'F2', 'F3', 'F4'])
  </code></pre>
  
  <p>Marking Duplicate Rows:</p>
  
  <pre><code>Data['Is_Dup'] = Data[['F1', 'F2', 'F3', 'F4']].duplicated(keep=False).astype(int)
  </code></pre>
  
  <p>Data:</p>
  
  <p><a href="https://i.stack.imgur.com/NrtAU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NrtAU.png" alt="enter image description here"></a></p>
  
  <p>Expected Results: I want to generate extra field called Dup_Ser, here range values needs to add for duplicate rows.</p>
  
  <p><a href="https://i.stack.imgur.com/yj74w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yj74w.png" alt="enter image description here"></a></p>