Which of the following is not a valid data type in NumPy?
Correct answer
B. string
14 views
B. string
14 views
"string" is not a NumPy dtype name. NumPy's text types are str_ (Unicode, code U) and bytes_ (code S).
int32, float64 and complex128 are all standard numeric dtypes.
For more solved questions like this one, see Data Science MCQs on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.