polars.DataFrame.__array__#
- DataFrame.__array__( ) np.ndarray[Any, Any] [source]#
Return a NumPy ndarray with the given data type.
This method ensures a Polars DataFrame 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