numpy.dtype.base() function returns dtype for the base element of the subarrays, regardless of their dimension or shape.
Syntax : numpy.dtype.base()
Return : Returns data type of the base element.
Code #1 :
Code #2 :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course