Export#

Export DataFrame data to other formats:

DataFrame.__array__([dtype, copy])

Return a NumPy ndarray with the given data type.

DataFrame.__arrow_c_stream__([requested_schema])

Export a DataFrame via the Arrow PyCapsule Interface.

DataFrame.__dataframe__([nan_as_null, ...])

Convert to a dataframe object implementing the dataframe interchange protocol.

DataFrame.to_arrow(*[, compat_level])

Collect the underlying arrow arrays in an Arrow Table.

DataFrame.to_dict(*[, as_series])

Convert DataFrame to a dictionary mapping column name to values.

DataFrame.to_dicts()

Convert every row to a dictionary of Python-native values.

DataFrame.to_init_repr([n])

Convert DataFrame to instantiable string representation.

DataFrame.to_jax([return_type, device, ...])

Convert DataFrame to a Jax Array, or dict of Jax Arrays.

DataFrame.to_numpy(*[, order, writable, ...])

Convert this DataFrame to a NumPy ndarray.

DataFrame.to_pandas(*[, ...])

Convert this DataFrame to a pandas DataFrame.

DataFrame.to_struct([name])

Convert a DataFrame to a Series of type Struct.

DataFrame.to_torch([return_type, label, ...])

Convert DataFrame to a PyTorch Tensor, Dataset, or dict of Tensors.