AlloViz.AlloViz.Elements.Element._from_arrays¶
- classmethod Element._from_arrays(arrays, columns, index, dtype: Dtype | None = None, verify_integrity: bool = True) Self ¶
Create DataFrame from a list of arrays corresponding to the columns.
- Parameters:
- arrayslist-like of arrays
Each array in the list corresponds to one column, in order.
- columnslist-like, Index
The column names for the resulting DataFrame.
- indexlist-like, Index
The rows labels for the resulting DataFrame.
- dtypedtype, optional
Optional dtype to enforce for all arrays.
- verify_integritybool, default True
Validate and homogenize all input. If set to False, it is assumed that all elements of arrays are actual arrays how they will be stored in a block (numpy ndarray or ExtensionArray), have the same length as and are aligned with the index, and that columns and index are ensured to be an Index object.
- Returns:
- DataFrame