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

Tabulated display for metadata could show nothing rather than b'' when a table has no metadata #2349

Closed
hyanwong opened this issue Jun 19, 2022 · 0 comments · Fixed by #2351

Comments

@hyanwong
Copy link
Member

As mentioned on slack, on a table with no metadata and a blank schema, currently something like the following

print(ts.tables.nodes)
# or
ts._repr_html_()

will return a tabular view with the "metadata" column filled full of b''. I wonder if in this specific case (no metadata in the entire table, no metadata schema) we should simply not display anything at all in that column? This would be less confusing for newcomers, and not be mistaken for anything else, I think.

If there is a metadata schema set (e.g. JSON), then I guess we would do as we currently do and show {} for all metadata entries in a blank table.

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

Successfully merging a pull request may close this issue.

1 participant