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()

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 DataFrame to a 2D NumPy array.

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

Cast to a pandas DataFrame.

DataFrame.to_struct(name)

Convert a DataFrame to a Series of type Struct.