Skip to content

Include metadata when converting to Pandas DataFrame #1399

@WeilerP

Description

@WeilerP

Please describe your wishes and possible alternatives to achieve the desired result.

Description

AnnData.to_df only converts data from .X or a layer to a DataFrame. It'd be great to also add metadata column from AnnData.obs. This feature would make it easier to work with Pandas groupby on the generated DataFrame, for example.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions