title: How to understand this lambda with 3 .replace() line of code
body: <p><code>df['Current Ver'] = df['Current Ver'].astype(str).apply(lambda x : x.replace('.', ',',1).replace('.', '').replace(',', '.',1)).astype(float)</code></p>
  <p>Slowly learning lambda command, my understanding of this line of code is:</p>
  <ol>
  <li>Change dataframe type to <code>str</code></li>
  <li>Apply <code>lambda</code> with one perimeter <code>x</code></li>
  <li>Replace all the string format <code>.</code> to <code>,</code> , (I don't understand what does <code>1</code> stands for, have done research prior asking, didn't find clue)</li>
  <li>Replace all the string format <code>.</code> to <code>null</code> value</li>
  <li>Replace all the string format <code>,</code> to <code>.</code> , (again still have no clue what does <code>1</code> stands for in this case)</li>
  <li>Change dataframe type to <code>float</code></li>
  </ol>
  <p>Please help me better understanding this line of code, thank you</p>