<li><strong>Last result has a hierarchical index. Use <codeclass="python hljs"><spanclass="hljs-string">'<Sr>[<key_1>, <key_2>]'</span></code> to get the value.</strong></li>
<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>
</ul>
</ul>
<div><h3id="dataframe">DataFrame</h3><p><strong>Table with labeled rows and columns.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-meta">>>></span>DataFrame([[<spanclass="hljs-number">1</span>, <spanclass="hljs-number">2</span>], [<spanclass="hljs-number">3</span>, <spanclass="hljs-number">4</span>]], index=[<spanclass="hljs-string">'a'</span>, <spanclass="hljs-string">'b'</span>], columns=[<spanclass="hljs-string">'x'</span>, <spanclass="hljs-string">'y'</span>])
<div><h3id="dataframe">DataFrame</h3><p><strong>Table with labeled rows and columns.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-meta">>>></span>DataFrame([[<spanclass="hljs-number">1</span>, <spanclass="hljs-number">2</span>], [<spanclass="hljs-number">3</span>, <spanclass="hljs-number">4</span>]], index=[<spanclass="hljs-string">'a'</span>, <spanclass="hljs-string">'b'</span>], columns=[<spanclass="hljs-string">'x'</span>, <spanclass="hljs-string">'y'</span>])
x y
x y
@ -2766,9 +2766,9 @@ b <span class="hljs-number">3</span> <span class="hljs-number">4</span>
┃ df.agg(…) │ x <spanclass="hljs-number">4</span>│ sum <spanclass="hljs-number">4</span><spanclass="hljs-number">6</span> │ x <spanclass="hljs-number">4</span> ┃
┃ │ y <spanclass="hljs-number">6</span> │ │ ┃
┃ df.apply(…) │ │ x y │ ┃
┃ df.agg(…) │ x <spanclass="hljs-number">4</span> │ sum <spanclass="hljs-number">4</span><spanclass="hljs-number">6</span> │ x <spanclass="hljs-number">4</span> ┃
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'<DF>[col_key_1, col_key_2][row_key]'</span></code> to get the fifth result's values.</strong></li>