Skip to content
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

No method matching deleteat! #40

Open
pdeffebach opened this issue Nov 5, 2020 · 0 comments
Open

No method matching deleteat! #40

pdeffebach opened this issue Nov 5, 2020 · 0 comments

Comments

@pdeffebach
Copy link

I know that ShiftedArrays is lazy, but this was an annoying bug I got today.


julia> x = [1, 2, 3];

julia> y = lag(x);

julia> deleteat!(y, 2)
ERROR: MethodError: no method matching deleteat!(::ShiftedArray{Int64,Missing,1,Array{Int64,1}}, ::Int64)
Closest candidates are:
  deleteat!(::BitArray{1}, ::Integer) at bitarray.jl:935
  deleteat!(::BitArray{1}, ::Any) at bitarray.jl:966
  deleteat!(::SentinelArrays.MissingVector, ::Integer) at /home/peterwd/.julia/packages/SentinelArrays/Ubf17/src/missingvector.jl:45
  ...
Stacktrace:

filter! in DataFrames uses deleteat!. I'm not sure what the solution here is since I think this would require materializing an array. It's an unfortunate error, though.

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

No branches or pull requests

1 participant