Datatypes

Following are the available datatypes in numpy.

  1. int32, int64, uint32, uint64
  2. float64 (default)
  3. complex128
  4. bool
  5. strings are typed by taking the maximum length string in the array.
f = np.array(["abc", "ab", "a"])
f.dtype
# dtype('<U3')

So, dtype says string type with 3 max characters.