anndata.AnnData.to_df# AnnData.to_df(layer=None)[source]# 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. Parameters: layer strKey for .layers. Return type: DataFrame