title: Importing numpy statement in script
body: <p>I am a matlab coder and have dabbled in and out of Python for various things.  One very basic concept/thing in python which I have not got to the bottom of relates to the from and import statements.  </p>
  
  <p>When i import bitarray from the bitarray module (am I correct saying this?) using example 1) I just call it's methods when I want to use them in the script that follows.  However, when i import numpy I cannot use the code shown in 2) as it throws an error, i have to use the statement in 3) then type np. before using any of its methods, which makes sense.  I can also import bitarray using similer syntax which i have shown in 4) below.......  why does 2) not work when 1) does? I am praying for a simple explanation :) .....   </p>
  
  <p>1)</p>
  
  <pre><code>from bitarray import bitarray
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>from numpy import numpy
  </code></pre>
  
  <p>3)</p>
  
  <pre><code>import numpy as np
  </code></pre>
  
  <p>4)</p>
  
  <pre><code>import bitarray as pp
  </code></pre>