hipdf.DataFrame.to_records

hipdf.DataFrame.to_records#

21 min read time

Applies to Linux

DataFrame.to_records(index=True, column_dtypes=None, index_dtypes=None)#

Convert to a numpy recarray

Parameters#

indexbool

Whether to include the index in the output.

column_dtypesstr, type, dict, default None

If a string or type, the data type to store all columns. If a dictionary, a mapping of column names and indices (zero-indexed) to specific data types. Currently not supported.

index_dtypesstr, type, dict, default None

If a string or type, the data type to store all index levels. If a dictionary, a mapping of index level names and indices (zero-indexed) to specific data types. This mapping is applied only if index=True. Currently not supported.

Returns#

numpy recarray