Learn Before
Concept
Type Handling
np.real(b) #Return the real part of the array elements np.imag(b) #Return the imaginary part of the array elements np.real_if_close(c,tol=1000) #Return a real array if complex parts close to 0 np.cast['f'](np.pi) #Cast object to a data type
0
1
Updated 2021-06-21
Tags
Python Programming Language
Data Science