title: What is the real working of ndim in NumPy?
body: <p>Consider:</p>
  <pre><code>import numpy as np
  &gt;&gt;&gt; a=np.array([1, 2, 3, 4])
  &gt;&gt;&gt; a
  array([1, 2, 3, 4])
  &gt;&gt;&gt; a.ndim
  1
  </code></pre>
  <p>How is the dimension 1? I have given a equation of three variables. It means it is three-dimensional, but it is showing the dimension as 1. What is the logic of ndim?</p>