Python pandas: remove everything after a delimiter in a string : <p>I have data frames which contain e.g.:</p>

<pre><code>"vendor a::ProductA"
"vendor b::ProductA
"vendor a::Productb"
</code></pre>

<p>I need to remove everything (and including) the two :: so that I end up with:</p>

<pre><code>"vendor a"
"vendor b"
"vendor a"
</code></pre>

<p>I tried str.trim (which seems to not exist) and str.split without success.
what would be the easiest way to accomplish this?</p>
