numpy isinstance

Solutions on MaxInterview for numpy isinstance by the best coders in the world

showing results for - "numpy isinstance"
Ruben
20 Sep 2016
1>>> import numpy as np
2a = np.array([1, 2, 3])
3>>> type(a)
4<type 'numpy.ndarray'>
5>>> type(a).__module__
6'numpy'
7>>> type(a).__module__ == np.__name__
8True