scvelo.get_df

scvelo.get_df(data, keys=None, layer=None, index=None, columns=None, sort_values=None, dropna='all', precision=None)

Get dataframe for a specified adata key.

Return values for specified key (in obs, var, obsm, varm, obsp, varp, uns, or layers) as a dataframe.

Parameters:
adata

AnnData object or a numpy array to get values from.

keys

Keys from .var_names, .obs_names, .var, .obs, .obsm, .varm, .obsp, .varp, .uns, or .layers.

layer

Layer of adata to use as expression values.

index

List to set as index.

columns

List to set as columns names.

sort_values

Wether to sort values by first column (sort_values=True) or a specified column.

dropna

Drop columns/rows that contain NaNs in all (‘all’) or in any entry (‘any’).

precision

Set precision for pandas dataframe.

Returns:

A dataframe.