bigframes.pandas.DataFrame.to_numpy#
- DataFrame.to_numpy(dtype=None, copy=False, na_value=<no_default>, *, allow_large_results=None, **kwargs) ndarray[source]#
Convert the DataFrame to a NumPy array.
Examples:
>>> df = bpd.DataFrame({'col1': [1, 2], 'col2': [3, 4]}) >>> df.to_numpy() array([[1, 3], [2, 4]], dtype=object)
- Parameters:
dtype (None) – The dtype to pass to numpy.asarray().
copy (bool, default None) – Whether to ensure that the returned value is not a view on another array.
na_value (Any, default None) – The value to use for missing values. The default value depends on dtype and the dtypes of the DataFrame columns.
allow_large_results (bool, default None) – If not None, overrides the global setting to allow or disallow large query results over the default size limit of 10 GB.
- Returns:
The converted NumPy array.
- Return type:
numpy.ndarray