Series object has no attribute 'strip'
<p>Here is a sample pandas DataFrame:</p>

<pre><code>id  product_type    qty
1   product_type 1  100
2   product_type 2  300
3   product_type 1  200
</code></pre>

<p>I want to delete <code>product_type</code> in the column <code>product_type</code> in order obtain the following new DataFrame:</p>

<pre><code>id  product_type    qty
1   1               100
2   2               300
3   1               200
</code></pre>

<p>This is how I tried to do it:</p>

<pre><code>orders['product_type'].strip('product_type ')
</code></pre>

<p>However there is an error:</p>

<pre><code>'Series' object has no attribute 'strip'
</code></pre>