<div><h3id="groupby">GroupBy</h3><p><strong>Object that groups together rows of a dataframe based on the value of passed column.</strong></p><pre><codeclass="python language-python hljs"><GB> = <DF>.groupby(column_key/s) <spanclass="hljs-comment"># DF is split into groups based on passed column.</span>
<DF> = <GB>.get_group(group_key) <spanclass="hljs-comment"># Selects a group by value of grouping column.</span>
<div><h3id="groupby">GroupBy</h3><p><strong>Object that groups together rows of a dataframe based on the value of passed column.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-meta">>>></span>df = DataFrame([[<spanclass="hljs-number">1</span>, <spanclass="hljs-number">2</span>, <spanclass="hljs-number">3</span>], [<spanclass="hljs-number">4</span>, <spanclass="hljs-number">5</span>, <spanclass="hljs-number">6</span>], [<spanclass="hljs-number">7</span>, <spanclass="hljs-number">8</span>, <spanclass="hljs-number">6</span>]], index=list(<spanclass="hljs-string">'abc'</span>), columns=list(<spanclass="hljs-string">'xyz'</span>))
b <spanclass="hljs-number">4</span><spanclass="hljs-number">5</span>
c <spanclass="hljs-number">7</span><spanclass="hljs-number">8</span>
</code></pre></div>
</code></pre></div>
<pre><codeclass="python language-python hljs"><GB> = <DF>.groupby(column_key/s) <spanclass="hljs-comment"># DF is split into groups based on passed column.</span>
<DF> = <GB>.get_group(group_key) <spanclass="hljs-comment"># Selects a group by value of grouping column.</span>
<spanclass="hljs-number">3</span>: a <spanclass="hljs-number">1</span><spanclass="hljs-number">2</span><spanclass="hljs-number">3</span>
<spanclass="hljs-number">3</span>: a <spanclass="hljs-number">1</span><spanclass="hljs-number">2</span><spanclass="hljs-number">3</span>
<spanclass="hljs-number">6</span>: b <spanclass="hljs-number">4</span><spanclass="hljs-number">5</span><spanclass="hljs-number">6</span>
<spanclass="hljs-number">6</span>: b <spanclass="hljs-number">4</span><spanclass="hljs-number">5</span><spanclass="hljs-number">6</span>
@ -2810,13 +2818,12 @@ b <span class="hljs-number">3</span> <span class="hljs-number">4</span>
| | c <spanclass="hljs-number">11</span><spanclass="hljs-number">13</span> | c <spanclass="hljs-number">1</span><spanclass="hljs-number">1</span> | | |
| | c <spanclass="hljs-number">11</span><spanclass="hljs-number">13</span> | c <spanclass="hljs-number">1</span><spanclass="hljs-number">1</span> | | |
<div><h2id="plotly"><ahref="#plotly"name="plotly">#</a>Plotly</h2><div><h3id="top10countriesbypercentageofpopulationwithconfirmedcovid19infection">Top 10 Countries by Percentage of Population With Confirmed COVID-19 Infection</h3><pre><codeclass="text language-text">|
<div><h2id="plotly"><ahref="#plotly"name="plotly">#</a>Plotly</h2><div><h3id="top10countriesbypercentageofpopulationwithconfirmedcovid19infection">Top 10 Countries by Percentage of Population With Confirmed COVID-19 Infection</h3><pre><codeclass="text language-text">|