title: python - Replace first five characters in a column with asterisks
body: <p>I have a column called SSN in a CSV file with values like this</p>
  
  <pre><code>289-31-9165
  </code></pre>
  
  <p>I need to loop through the values in this column and replace the first five characters so it looks like this</p>
  
  <pre><code>***-**-9165
  </code></pre>
  
  <p>Here's the code I have so far:</p>
  
  <pre><code>emp_file = "Resources/employee_data1.csv"
  
  emp_pd = pd.read_csv(emp_file) 
  
  new_ssn = emp_pd["SSN"].str.replace([:5], "*")
  
  emp_pd["SSN"] = new_ssn
  </code></pre>
  
  <p>How do I loop through the value and replace just the first five numbers (only) with asterisks and keep the hiphens as is? </p>