-
Notifications
You must be signed in to change notification settings - Fork 35
CategoricalArray constructor sometimes does not copy all data #107
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
Comments
Just to add. The problem is that after:
we have that So the decision is to make: should |
Good catch. The problem is not in |
I support making a copy. |
I'm quite busy right now with other PRs, so I'd appreciate if you could do it. Most of the work should be to write a test I think. |
I have made a PR. |
closing as this is fixed. |
Uh oh!
There was an error while loading. Please reload this page.
See
JuliaData/DataFrames.jl#1309 (comment)
for an example
The problem is that lines:
https://github.com/JuliaData/CategoricalArrays.jl/blob/master/src/array.jl#L269
and
https://github.com/JuliaData/CategoricalArrays.jl/blob/master/src/array.jl#L270
do not guarantee that a copy is performed (sometimes
convert
returns the reference to the original object).CC @nalimilan
The text was updated successfully, but these errors were encountered: