Skip to content

Fix tests and deprecations on Julia 0.6 #1146

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

Closed
wants to merge 81 commits into from
Closed

Conversation

nalimilan
Copy link
Member

Depends on a new version of Compat being tagged (JuliaLang/Compat.jl#306).

The slightly weird syntax for ! works around the unfortunate combination of JuliaLang/julia#20037 and JuliaLang/julia#20039.

@kleinschmidt The same trick will likely be needed for StatsModels.

Gord Stephen and others added 30 commits September 14, 2016 10:13
Add compatibility with pre-contrasts ModelFrame constructor
Completely remove support for DataArrays.
This depends on PRs moving these into NullableArrays.jl.
Also use isequal() instead of ==, as the latter is in Base and
unlikely to change its semantics.
groupby() did not follow the order of levels, and wasn't robust to reordering
levels. Add tests for corner cases.
Use the fallbacks for now, should be added back after
JuliaData/CategoricalArrays.jl#12 is fixed.
Not sure what I meant by this. If it was really serious, we'll discover
it sooner or later.
This is a much more general issue (JuliaStats/NullableArrays.jl#85) which
can be tackled later.
For now, preserve the current semantics: conversion to NullableArray
does not happen via insert!().
Again a broader issue which doesn't particularly affect DataFrames. Cf.
JuliaStats/NullableArrays.jl#143
Better handle that separately.
Shorter written that way for now. Filed as JuliaStats/NullableArrays.jl#144.
This depends on a CategoricalArrays change by which levels are sorted when
creating the array.
There's no inconsistency here: when the input is a Matrix, there's no
point in returning a NullableArray. Anyway, these are test methods.
We don't have to handle this right now.
Keep this in DataFrames for now, renaming it to the more explicit
sharepools(). Also relax signatures to accept non-Nullable categorical arrays.
These were not exercized by the tests, and the use case for them isn't obvious.
(They were formerly methods of DataArrays.PooledDataArray().)
For NullableArrays, even current git master is not enough at this time.
Tests pass, but the Nullable{Any} results could be annoying for users.
New type merging NominalArray and OrdinalArray in 0.0.5.
These shouldn't live in DataFrames.
davidanthoff and others added 21 commits October 1, 2016 14:46
* handle -1 and add tests

* replace `import Base.==` with `Base.:(==)`

* typo and error test
Also return a NullableCategoricalArray from sharepools() since
the code currently doesn't check that no null values are present.
anyway this function is internal and the change imposes no overhead.
* Better display of Nullables

* Don't write trailing space in Latex output

Also fix missing newline in show test
* limit attribute of IOContext is used for html generation

* fixup
I apparently missed these occurrences when removing these functions.
The instruction to rename columns if they don't match was part of the docs previously (http://dataframesjl.readthedocs.io/en/latest/joins_and_indexing.html). I adapted the syntax to avoid using {}.
@nalimilan
Copy link
Member Author

Tests passed on 0.5 on Travis, AppVeyor is stuck for several days. Good to merge?

@andreasnoack
Copy link
Member

What about 0.6?

@nalimilan
Copy link
Member Author

I'm not sure, but it looks like there's an issue in CategoricalArrays.

@nalimilan
Copy link
Member Author

nalimilan commented Jan 19, 2017

I confirm it's in CategoricalArrays. That's a stack overflow probably related to the recent type system changes. EDIT: looks like it's JuliaLang/julia#20103 (comment)

@nalimilan
Copy link
Member Author

Superseded by #1164.

@nalimilan nalimilan closed this Mar 12, 2017
@ararslan ararslan deleted the nl/deprecations branch March 12, 2017 18:34
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

Successfully merging this pull request may close these issues.