-
Notifications
You must be signed in to change notification settings - Fork 35
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
cut
: option to have missing
as level
#377
Comments
What do you mean exactly? |
I understand that OP wants |
julia> categorical(["a", "b", missing]) |> levels
2-element Vector{String}:
"a"
"b" instead, I'd like to have |
Ah, OK. Then I don't think it should be a specific option of |
That said you can already do |
Ah, nice! I wasn't aware of that. |
But since |
As I said I could be convinced to add a function so that you can do e.g. |
I disagree.
|
If we wanted to follow that OP wants we cannot make What we would need to do is to make it an option for |
Why should this be specific to
|
Alright, I am closing this. Thank you for the feedback and the discussion! |
@nalimilan, I reopen this as I would like to ask you to give a clear statement as a lead maintainer what is the recommended way for users to turn Can you confirm that it is Thank you! |
Both As I said I could make sense to add a convenience function for this. Anyway yes we can mention this in the manual. |
See #378. |
Sometimes I would like to have "missing" as a level after
cut
ting a variable. What would you think about a PR that adds a keywordmissing_as_level
(defaulting tofalse
) that adds this feature?The text was updated successfully, but these errors were encountered: