title: How to get type of multidimensional Numpy array elements in Python
body: <p>How can I get the type of a multidimensional array?</p>
  
  <p>I treat arrays but considering data type:  <code>string</code>, <code>float</code>, <code>Boolean</code>, I have to adapt code so I would have to get the type regardless of dimension that can be one two dimensions or more. </p>
  
  <p>Data can be 1d of real, 3D of string ...</p>
  
  <p>I would like to recover type of Array,  is it a real , is it a string is it a boolean ...
  without doing Array[0]  or Array [0][0][0][0]  because dimension can be various. 
  Or a way to get the first element of an array whatever the dimensions.</p>
  
  <p>It works with np.isreal a bit modified , but I don't found equivalent like isastring or isaboolean ...</p>