<pre><codeclass="python language-python hljs"><S> = <S>><el/S><spanclass="hljs-comment"># Returns S of bools. For logic use &, |, ~.</span>
<S> = <S> + <el/S><spanclass="hljs-comment"># Items with non-matching keys get value NaN.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><S> = <S>.value_counts(normalize=<spanclass="hljs-keyword">False</span>) <spanclass="hljs-comment"># Returns S of unique values and their counts.</span>
<S> = <S>.str.strip/lower/contains/replace() <spanclass="hljs-comment"># Processes strings. For dates see File Formats.</span>
<pre><codeclass="python language-python hljs"><S> = <S>.head/describe/copy/sort_values() <spanclass="hljs-comment"># Also <S>.unique/value_counts/round/dropna().</span>
<S> = <S>.str.strip/lower/contains/replace() <spanclass="hljs-comment"># Also split().str[<int>] and split().explode().</span>
<S> = <S>.dt.year/month/day/hour <spanclass="hljs-comment"># Use pd.to_datetime(<S>) to get S of dates.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><S>.plot.line/area/bar/pie/hist() <spanclass="hljs-comment"># Generates a plot. `plt.show()` displays it.</span>
</code></pre>
@ -2627,7 +2627,7 @@ Name: a, dtype: int64
</code></pre>
<ul>
<li><strong>Methods ffill(), interpolate(), fillna() and dropna() accept <codeclass="python hljs"><spanclass="hljs-string">'inplace=True'</span></code>.</strong></li>
<li><strong>Methods sort_values(), dropna(), ffill(), interpolate() and fillna() accept <codeclass="python hljs"><spanclass="hljs-string">'inplace=True'</span></code>.</strong></li>
<li><strong>Agg() and transform() pass a Series to a function if it raises Type/Val/AttrError on a scalar.</strong></li>
<li><strong>Last result has a multi-index. Use <codeclass="python hljs"><spanclass="hljs-string">'<S>[key_1, key_2]'</span></code> to get its values.</strong></li>
</ul>
@ -2932,7 +2932,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the active