title: remove [edit] from end of string
body: <p>I have dataframe with states:</p>
  
  <pre><code>Alabama[edit]            8
  Alaska[edit]             1
  Arizona[edit]            3
  Arkansas[edit]  
  </code></pre>
  
  <p>Want remove the [edit] from the end of the string.</p>
  
  <p>I tried:
      unit['State'] = unit['State'].str.rstrip('[edit]')
  But this code ends up remove the letters edit from the end of state names, e.g Delaware-> Delawar.</p>
  
  <p>How can I remove the exactly [edit]?</p>