Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend HTML visualization to cover entire DataFrames. #203

Open
frreiss opened this issue Jun 8, 2021 · 0 comments
Open

Extend HTML visualization to cover entire DataFrames. #203

frreiss opened this issue Jun 8, 2021 · 0 comments

Comments

@frreiss
Copy link
Member

frreiss commented Jun 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant