bpd.DataFrame.from_records

classmethod DataFrame.from_records(data, *, columns=None)[source]

Convert structured or record ndarray to DataFrame.

Parameters:
  • data (ndarray (structured dtype), list of tuples, dict, or DataFrame) –
  • columns (sequence, default None, keyword-only) – Column names to use. If the passed data do not have names associated with them, this argument provides names for the columns. Otherwise this argument indicates the order of the columns in the result (any names not found in the data will become all-NA columns)
Returns:

Return type:

DataFrame