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

Creation of missing entry even if it is not present #24

Open
bkamins opened this issue Apr 21, 2018 · 1 comment
Open

Creation of missing entry even if it is not present #24

bkamins opened this issue Apr 21, 2018 · 1 comment

Comments

@bkamins
Copy link
Collaborator

bkamins commented Apr 21, 2018

I think in such cases missing should not appear as level in the output:

Case 1:

julia> freqtable(categorical(["a", 'b']))
3-element Named Array{Int64,1}
Dim1    │
────────┼──
a       │ 1
'b'     │ 1
missing │ 0

Case 2:

julia> freqtable(categorical(Union{String,Missing}["a", "b"]))
3-element Named Array{Int64,1}
Dim1    │
────────┼──
a       │ 1
b       │ 1
missing │ 0
@nalimilan
Copy link
Owner

Good catch. Shouldn't be too hard to fix.

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

2 participants