bioalpha.h5ad_map.H5ADMap.to_df

H5ADMap.to_df(layer: str | None = None)

Generate shallow DataFrame.

The data matrix X is returned as DataFrame, where obs_names initializes the index, and var_names the columns.

  • No annotations are maintained in the returned object.

  • The data matrix is densified in case it is sparse.

Params

layerstr

Key for .layers.