Convertion to numpy array#

to_array(record: ndarray | Series | Sequence[object]) ndarray[tuple[int, ...], dtype[Any]][source]#

Convert a record to a flat NumPy array of dtype object.

Parameters:

record (np.ndarray | pd.Series | Sequence[object]) – feature values.

Returns:

1D array of feature values, with original dtype preserved.

Return type:

NDArray[Any]