W3cubDocs

/pandas 0.19

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

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