Export#

Export DataFrame data to other formats:

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

Convert to a dataframe object implementing the dataframe interchange protocol.

DataFrame.to_arrow()

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 instantiatable string representation.

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

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.