Comments (11)
Also, sometimes where we'd expect an NA
we get 0.
julia> padNA(da, 4, 2)
9-element DataArray{Int64,1}:
140200970311424
140200928071456
140200970385312
140200928071744
1
2
3
0
0
EDIT:
Or some other integer, including 1 or 8 ...
julia> padNA(da, 4, 4)
11-element DataArray{Int64,1}:
140200948841536
140200948841520
8
4294967296
1
2
3
12884901888
12884901888
0
0
from dataarrays.jl.
This is almost certainly dirty memory.
from dataarrays.jl.
I'm figuring it's part of Chaos month, but can't track it down. Updating to 0.3 now to see if that changes anything
from dataarrays.jl.
Well 0.3 didn't change anything as expected. I couldn't find the source using padNA
in repl until I manually went into .julia/DataArrays
and did a git checkout master
for some reason Pkg.update()
wasn't working. In any case, I'll debug the method and see if I can fix it. It's in data vector.jl
line 123 of commit 53581c3
from dataarrays.jl.
Well the only change to the method from this resolution JuliaData/DataFrames.jl#154 is the method signature changed Int
to Integer
for the front
and back
parameters, but changing this doesn't solve the problem.
The similar
method is where the trouble is generated.
from dataarrays.jl.
Somewhere along the line, function similar
became function Base.similar
and the line (actually the entire code block)
DataArray(Array(T, dims), trues(dims))
was replaced by
DataArray(Array(T, dims), BitArray(dims))
Using the original code block fixes this issue.
- Why did
BitArray
replacetrues
? - Can we put the
trues(dims)
back in? - What happened to using
(dims...)
? (both(dims)
and(dims...)
was previously defined)
from dataarrays.jl.
Re similar
, see #10. I think the consensus there was that we should change this back.
from dataarrays.jl.
So the idea is to not call similar
at all in padNA
but to write the method in some other fashion?
from dataarrays.jl.
I suppose you can pad the back by using [push!(dv, NA) for i = 1:back]
(which works). Not sure how to do the front though ...
from dataarrays.jl.
[unshift!(dv, NA) for i = 1:front]
from dataarrays.jl.
Fixed by 96a6241
from dataarrays.jl.
Related Issues (20)
- #undef/uninitialised values from unique on PooledDataArray
- Get rid of @ngenerate
- Missing DataArray{T}(dims) constructors HOT 1
- MethodError in pooleddataarray.jl in Julia 0.6 HOT 7
- Inference failure/indexing issues HOT 14
- View on DataArray makes copy HOT 1
- broadcast() inference issue with mean() and > HOT 5
- In v 0.7 precompile fails with typeassert HOT 1
- `safe_mapslices` at test/reducedim.jl is broken on 0.7 HOT 2
- Can't load DataArrays HOT 9
- Weighted mean broken for matrices HOT 1
- Avoid copying input Array{Union{T, Null}} in DataArray{T} constructor
- getindex broken when using multidimensional index of DataArray{Bool}
- Division DataArray{Int} / Int results in Array{Any} HOT 2
- doesn't load on julia v0.7 because of `printf` HOT 1
- PooledDataArray depreciated? HOT 1
- Julia v0.7 compatibility HOT 9
- "UndefVarError: centralizedabs2fun not defined" while precompiling HOT 3
- Julia-1.0.0 Compile Error HOT 3
- Package compatibility caps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dataarrays.jl.