W3cubDocs

/pandas 0.20

pandas.DataFrame.to_records

DataFrame.to_records(index=True, convert_datetime64=True) [source]

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

convert_datetime64 : boolean, default True

Whether to convert the index to datetime.datetime if it is a DatetimeIndex

Returns:

y : recarray

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.20.2/generated/pandas.DataFrame.to_records.html