Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 5 what type of values can a numpy array contain? only values o…

Question

question 5
what type of values can a numpy array contain?
only values of multiple types.
only strings.
only values of a single type.
only integers.
question 6
what is the result of using a boolean array for subsetting a numpy array?
it returns a new array with elements set to true or false.
it selects elements corresponding to true in the boolean array.

Explanation:

Answer:

Only values of a single type.
It selects elements corresponding to True in the boolean array.