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 tonumpy.asarray().

  • copy (bool,default None) – Whether to ensure that the returned value is not a viewon another array.

  • na_value (Any,default None) – The value to use for missing values. The default valuedepends 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 disallowlarge query results over the default size limit of 10 GB.

Returns:

The converted NumPy array.

Return type:

numpy.ndarray

This Page