<li><strong>Module <ahref="#operator">operator</a> provides functions itemgetter() and mul() that offer the same functionality as <ahref="#lambda">lambda</a> expressions above.</strong></li>
</ul>
<pre><codeclass="python language-python hljs"><list>.insert(<int>, <el>) <spanclass="hljs-comment"># Inserts item at index and moves the rest to the right.</span>
<el> = <list>.pop([<int>]) <spanclass="hljs-comment"># Returns and removes item at index or from the end.</span>
<el> = <list>.pop([<int>]) <spanclass="hljs-comment"># Removes and returns item at index or from the end.</span>
<int> = <list>.count(<el>) <spanclass="hljs-comment"># Returns number of occurrences. Also works on strings.</span>
<int> = <list>.index(<el>) <spanclass="hljs-comment"># Returns index of the first occurrence or raises ValueError.</span>
<list>.remove(<el>) <spanclass="hljs-comment"># Removes first occurrence of the item or raises ValueError.</span>
@ -2550,6 +2550,9 @@ Name: a, dtype: int64
<Sr> = <Sr>.combine_first(<Sr>) <spanclass="hljs-comment"># Adds items that are not yet present.</span>
<Sr>.update(<Sr>) <spanclass="hljs-comment"># Updates items that are already present.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><Sr>.plot.line/area/bar/pie/hist() <spanclass="hljs-comment"># Generates a Matplotlib plot.</span>
matplotlib.pyplot.show() <spanclass="hljs-comment"># Displays the plot. Also savefig(<path>).</span>
@ -2577,10 +2580,6 @@ y <span class="hljs-number">2</span>
<ul>
<li><strong>Last result has a hierarchical index. Use <codeclass="python hljs"><spanclass="hljs-string">'<Sr>[key_1, key_2]'</span></code> to get its values.</strong></li>