pandas 0.8.0 documentation

pandas.DataFrame.to_records

DataFrame.to_records(index=True)

Convert DataFrame to record array. Index will be put in the ‘index’ field of the record array if requested

Parameters :

index : boolean, default True

Include index in resulting record array, stored in ‘index’ field

Returns :

y : recarray