The following code runs ok:
>>> from sklearn import datasets
>>> iris=datasets.load_iris()
>>> type(iris.data)
<type 'numpy.ndarray'>
>>>
It shows that iris.data is of type numpy.ndarray. So I guess the numpy.ndarray should already be imported. But the following code failed.
>>> help(numpy.ndarray)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'numpy' is not defined
So, how could this numpy.ndarray is not imported but can be used?