pyphi.models.pandas.records_to_frame# pyphi.models.pandas.records_to_frame(rows, index=None, columns=None)[source]# Stack record mappings into a DataFrame, optionally moving one column to the index. columns fixes the column set so an empty rows still produces the right schema. Parameters: rows (Iterable[Mapping[str, Any]]) index (str | None) columns (list[str] | None) Return type: DataFrame