title: Losing decimal when doing array operation in Python
body: <p>I tried to make a function and inside it there is a code to divides a column with its column sum and here I come up with.</p>
  <pre><code>A = np.array([[1,2,3,4],[1,2,3,4],[1,2,3,4]])
  print(A)
  A = A.T
  Asum = A.sum(axis=1)
  print(Asum)
  for i in range(len(Asum)):
      A[:,i] = A[:,i]/Asum[i]
  </code></pre>
  <p>I'm hoping some decimal matrix but it automatically turn into integer. It gives me a zero matrix. Where do I go wrong?</p>