pandas 0.7.0 documentation

pandas.DataFrame.as_matrix

DataFrame.as_matrix(columns=None)

Convert the frame to its Numpy-array matrix representation. Columns are presented in sorted order unless a specific list of columns is provided.

Parameters :

columns : array-like

Specific column order

Returns :

values : ndarray

If the DataFrame is heterogeneous and contains booleans or objects, the result will be of dtype=object