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

Prettier IO methods for CategoricalValue #370

Closed
juliohm opened this issue Oct 2, 2021 · 3 comments
Closed

Prettier IO methods for CategoricalValue #370

juliohm opened this issue Oct 2, 2021 · 3 comments

Comments

@juliohm
Copy link
Contributor

juliohm commented Oct 2, 2021

It would be nice to show categories as colored squares with labels so that ML users can see different categories visually in tabular displays such as the one shipped with Pluto:

image

It suffices to define a prettier IO method for CategoricalValue. Pluto will display it properly in the table.

@juliohm juliohm changed the title Better IO methods for CategoricalValue Prettier IO methods for CategoricalValue Oct 2, 2021
@bkamins
Copy link
Member

bkamins commented Oct 2, 2021

Or even Cat(value) would be nice (and play well with what we print as eltype in DataFrames.jl).

@juliohm
Copy link
Contributor Author

juliohm commented Oct 2, 2021

Yeah any improvement would be great :) Maybe Colors.jl is a useful dependency here?

@nalimilan
Copy link
Member

nalimilan commented Oct 25, 2021

Duplicate of fonsp/Pluto.jl#807. #371 should improve the situation a lot (though the quotes are still printed for strings).

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

3 participants