numpy string ints to ints code example
Example 1: integer to boolean numpy
array > 0
#will give True if 1 and false if zero
Example 2: python ndarray string array into int
y = y.astype(np.uint8)
array > 0
#will give True if 1 and false if zero
y = y.astype(np.uint8)