Slicing strings in a column in pandas
<p>I have a CSV that has a column of URLs and I'm trying to slice out some unnecessary characters leading and trailing characters. I'm using the following syntax:</p>

<pre><code>df.['column_name'].str[3:10]
</code></pre>

<p>Unfortunately I get <code>TypeError: 'method' object is not subscriptable</code>.</p>