AlloViz.AlloViz.Elements.Element._sanitize_column¶
- Element._sanitize_column(value) tuple[ArrayLike, BlockValuesRefs | None] ¶
Ensures new columns (which go into the BlockManager as new blocks) are always copied (or a reference is being tracked to them under CoW) and converted into an array.
- Parameters:
- valuescalar, Series, or array-like
- Returns:
- tuple of numpy.ndarray or ExtensionArray and optional BlockValuesRefs