-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DataFrames.CategoricalValue not displaying nicely #807
Comments
Hey! Happy holidays! |
Happy holidays to you too! 😄 it would be nice to only show the string value without the type information and without quotations |
Here is a fix, Base.show(io::IO, ::MIME"text/html", x::CategoricalArrays.CategoricalValue) = print(io, get(x)) after: Note, that this matches how CategoricalArrays are shown in the REPL. I wonder if Pluto somehow interferes with the show method defined in CategoricalArrays? cc @nalimilan |
|
|
@nalimilan Any suggestions? |
I made a detailed proposal above. |
Btw, I accidentally found a workaround. If you display a dataframe interpolated in markdown, it shows as in the repl begin
df = DataFrame=(a = ["foo", "bar"], b=[1,2])
df.a .= categorical(df.a)
md"""
$(df)
"""
end |
The text was updated successfully, but these errors were encountered: