<li><strong>Axis is an index of the dimension that gets aggregated. Leftmost dimension has index 0. Summing the RGB image along axis 2 will return a greyscale image with shape (50, 100).</strong></li>
<li><strong>Passing a tuple of axes will chain the operations like this: <codeclass="python hljs"><spanclass="hljs-string">'<array>.<method>(axis_1).<method>(axis_2 - 1 if axis_2 > axis_1 else axis_2)'</span></code>.</strong></li>
<pre><codeclass="bash language-bash hljs"><2d_bools> = <2d_array>><== <el/1d/2d_array><spanclass="hljs-comment"># 1d_array must have size of a row.</span>
<pre><codeclass="bash hljs"><2d_bools> = <2d_array>><== <el/1d/2d_array><spanclass="hljs-comment"># 1d_array must have size of a row.</span>
<1d/2d_a> = <2d_array>[<2d/1d_bools>] <spanclass="hljs-comment"># 1d_bools must have size of a column.</span>