Skip to content

Extend HTML visualization to cover entire DataFrames. #203

@frreiss

Description

@frreiss

Extend the widget to also display entire DataFrames with one or more columns of span data, similar to how display.render() displays spans of multiple types at the same time.

The type/tag associated with the spans should be configurable, and should be drawn either from the names of columns in the DataFrame (for example, if there are columns "arg1" and "arg2"), or from data from the same row in a separate column (for example, "entity_type" with values like "Person", "Org", etc.).

Since Pandas DataFrames already have a _repr_html_ method, the API for this new viz should be a function that you pass a DataFrame through, similar to how displacy.render() takes a SpaCy Doc object as input and returns a new object with IPython display hooks.

Metadata

Metadata

Assignees

No one assigned

    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