|
|
@ -2607,7 +2607,7 @@ Name: a, dtype: int64 |
|
|
|
plt.show() <span class="hljs-comment"># Displays the plot. Also plt.savefig(<path>).</span> |
|
|
|
</code></pre> |
|
|
|
<div><h4 id="seriesaggregatetransformmap">Series — Aggregate, Transform, Map:</h4><pre><code class="python language-python hljs"><el> = <Sr>.sum/max/mean/idxmax/all() <span class="hljs-comment"># Or: <Sr>.agg(lambda <Sr>: <el>)</span> |
|
|
|
<Sr> = <Sr>.rank/diff/cumsum/ffill/interpl() <span class="hljs-comment"># Or: <Sr>.agg/transform(lambda <Sr>: <Sr>)</span> |
|
|
|
<Sr> = <Sr>.rank/diff/cumsum/ffill/interplt() <span class="hljs-comment"># Or: <Sr>.agg/transform(lambda <Sr>: <Sr>)</span> |
|
|
|
<Sr> = <Sr>.fillna(<el>) <span class="hljs-comment"># Or: <Sr>.agg/transform/map(lambda <el>: <el>)</span> |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
@ -2704,7 +2704,7 @@ c <span class="hljs-number">6</span> <span class="hljs-number">7</span> |
|
|
|
┗━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━┛ |
|
|
|
</code></pre> |
|
|
|
<div><h4 id="dataframeaggregatetransformmap">DataFrame — Aggregate, Transform, Map:</h4><pre><code class="python language-python hljs"><Sr> = <DF>.sum/max/mean/idxmax/all() <span class="hljs-comment"># Or: <DF>.apply/agg(lambda <Sr>: <el>)</span> |
|
|
|
<DF> = <DF>.rank/diff/cumsum/ffill/interpl() <span class="hljs-comment"># Or: <DF>.apply/agg/transfrm(lambda <Sr>: <Sr>)</span> |
|
|
|
<DF> = <DF>.rank/diff/cumsum/ffill/interplt() <span class="hljs-comment"># Or: <DF>.apply/agg/transfrm(lambda <Sr>: <Sr>)</span> |
|
|
|
<DF> = <DF>.fillna(<el>) <span class="hljs-comment"># Or: <DF>.applymap(lambda <el>: <el>)</span> |
|
|
|
</code></pre></div> |
|
|
|
|
|
|
|