hv_anndata.AnnDataInterface¶
- class hv_anndata.AnnDataInterface(*, name)¶
Anndata interface for holoviews.
Methods
aggregate(dataset, kdims, function, **kwargs)Aggregate the current view.
dimension_type(dataset, ref, /)Get the scalar type for a dimension (e.g. np.int64).
dims(dataset)Detect if the data is gridded or columnar and which anndata dimensions it spans.
groupby(dataset, dimensions, container_type, ...)Group the dataset along the provided dimensions.
iloc(dataset, index)Implement Dataset.iloc.
init(eltype, data, kdims, vdims)Initialize the interface.
reindex(dataset[, kdims, vdims])Reindex the data (a no-op).
select(dataset, *[, selection_mask])Select along obs and var dims.
selection_masks(dataset, selection)Generate boolean masks along obs and var dims.
unpack_scalar(dataset, data)Unpacks scalar data if it is a DataFrame containing a single value.
validate_selection_dim(ref, /, action)Validate dimension as valid axis to select on.
values(data, ref, /[, expanded, flat, ...])Retrieve values for a dimension.