pandas.DataFrame.from_records¶
- classmethod DataFrame.from_records(data, index=None, exclude=None, columns=None, names=None, coerce_float=False)¶
Convert structured or record ndarray to DataFrame
Parameters : data : ndarray (structured dtype), list of tuples, or DataFrame
index : string, list of fields, array-like
Field of array to use as the index, alternately a specific set of input labels to use
exclude: sequence, default None :
Columns or fields to exclude
columns : sequence, default None
Column names to use, replacing any found in passed data
coerce_float : boolean, default False
Attempt to convert values to non-string, non-numeric objects (like decimal.Decimal) to floating point, useful for SQL result sets
Returns : df : DataFrame