polars.Series.__array__#
- Series.__array__( ) np.ndarray[Any, Any] [source]#
Return a NumPy ndarray with the given data type.
This method ensures a Polars Series can be treated as a NumPy ndarray. It enables
np.asarray
and NumPy universal functions.See the NumPy documentation for more information: https://numpy.org/doc/stable/user/basics.interoperability.html#the-array-method
See also
__array_ufunc__