Skip to content

Tabular representation of results #61

@eleftherioszisis

Description

@eleftherioszisis

Make data presentable so that users avoid doing things like:

def pretty(m):
    def pretty_value(v):
        if isinstance(v, dict):
            if 'name' in v:
                return v['name']
        return v
    return { p:pretty_value(v) for p,v in m.items()}
pd.DataFrame([pretty(m.dict()) for m in morphs])

A format argument can be added to IteratorResult methods so that they are consumed into a better representation than a list if requested.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions