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

Columns with NA not being parsed correctly #6

Closed
harsharora21 opened this issue Jun 7, 2022 · 1 comment
Closed

Columns with NA not being parsed correctly #6

harsharora21 opened this issue Jun 7, 2022 · 1 comment

Comments

@harsharora21
Copy link
Member

apipop is a dataset included with Survey.jl. apipop columns containing NA are not being parsed correctly. They are being parsed as strings. They should be Int or missing.

How to reproduce

Load apipop

using Survey
data(api)

View target column

apipop[!,"target"]

The output is

6194-element PooledArrays.PooledVector{InlineStrings.String3, UInt32, Vector{UInt32}}:
 "5"
 "11"
 "11"
 "3"
 "1"
 "4"
 "2"
 "7"
 "1"
 "11"
 ⋮
 "10"
 "13"
 "12"
 "11"
 "12"
 "11"
 "5"
 "2"
 "6"

The expected output

6194-element Vector{Union{Missing, Int64}}:
  5
 11
 11
  3
  1
  4
  2
  7
  1
 11
  ⋮
 10
 13
 12
 11
 12
 11
  5
  2
  6
@ayushpatnaikgit
Copy link
Member

Your PR resolves this issue.
Thanks.

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