Skip to content
This repository has been archived by the owner on May 5, 2019. It is now read-only.

Extend nullable! code, fix NullableArray hardcoding #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Extend nullable! code, fix NullableArray hardcoding #67

wants to merge 1 commit into from

Conversation

cjprybol
Copy link
Contributor

Adds nullable versions of nullable! for copies rather than inplace.
Adds tests to check proper handling of CategoricalArrays. Adds a
similar_nullable function that will check the size of the Array.
Converts a nullable! call that operated over the entire datatable
to use a new nullable! func that operates over all columns.

This should help with #66 (comment)

@@ -758,6 +758,30 @@ function nullable!{T <: ColumnIndex}(dt::DataTable, cols::Vector{T})
end
dt
end
function nullable!(dt::DataTable)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if that only saves a few lines, this can be replaced with cols::Vector{T}=names(dt) in the previous definition.

@nalimilan
Copy link
Member

@quinnj Does that suit your needs in #66?

Adds a similar_nullable function that will check the size of the Array.

"check" should be "use", right?

Adds nullable versions of nullable! for copies rather than inplace.
Adds tests to check proper handling of CategoricalArrays. Adds a
similar_nullable function that will use the size of the Array rather
than always requiring the user to pass the size as an argument. Converts
a nullable! call that operated over the entire datatable to use a new
nullable! func that operates over all columns.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants