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

consolidate internal hcat! function and remove autopromotion #43

Merged
merged 1 commit into from
May 12, 2017
Merged

consolidate internal hcat! function and remove autopromotion #43

merged 1 commit into from
May 12, 2017

Conversation

cjprybol
Copy link
Contributor

@cjprybol cjprybol commented Mar 31, 2017

was part of #30

hcat!(dt::DataTable, x::CategoricalArray) = hcat!(dt, DataTable(Any[x]))
hcat!(dt::DataTable, x::NullableCategoricalArray) = hcat!(dt, DataTable(Any[x]))
hcat!(dt::DataTable, x::NullableVector) = hcat!(dt, DataTable(Any[x]))
hcat!(dt::DataTable, x::Vector) = hcat!(dt, DataTable(Any[NullableArray(x)]))
Copy link
Member

Choose a reason for hiding this comment

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

AFAICT this stops autopromotion to NullableArray? It's surprising that the tests didn't need adjustment. Please mention this in the commit message.

All tests passed without needing any changes. Also removes an
unneccessary empty line.
@cjprybol
Copy link
Contributor Author

cjprybol commented Apr 4, 2017

commit message updated, and tests still green!

@nalimilan nalimilan merged commit b2d88f1 into JuliaData:master May 12, 2017
@cjprybol cjprybol deleted the cjp/consolidatehcat branch July 19, 2017 23:27
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