title: How to multiply a numpy float array from an Excel sheet by a constant?
body: <p>I'm reading the values from an Excel file using the <code>xlrd</code> package and storing them into an array. I printed the array and it got the values from the Excel. Now I want to multiply the array by a constant value: </p>
  
  <pre><code>def getExcel():    
      book = xlrd.open_workbook(filedialog.askopenfilename())
      sheet = book.sheet_by_index(5)
      sheet.cell_value(0, 0)    
      y = []
      ydata = np.array(y, dtype = np.float32)
      x = []
      angle = np.array(x, dtype = np.float32)    
      i=0
      while (i&lt;sheet.nrows):
          if (i%2)&gt;0:            
              angle = np.append(angle, sheet.cell_value(i, 0))            
          else:
              ydata = np.append(ydata, sheet.cell_value(i, 0))
          i+=1
      constant = sheet.cell_value(1, 4)
      rad = np.multiply(angle, 0.0174)    
      print(rad)
  </code></pre>
  
  <p>I expect all of the elements of the <code>angle</code> array to be multiplied by <code>0.0174</code>, but I'm getting an error as follows:</p>
  
  <pre><code>line 27, in getExcel rad = np.multiply(angle, 0.0174)
  numpy.core._exceptions.UFuncTypeError: ufunc 'multiply' did not contain a 
  loop with signature matching types (dtype('&lt;U32'), dtype('&lt;U32')) -&gt; 
  dtype('&lt;U32')
  </code></pre>