You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, I believe this was introduced to avoid having LOCF silently fail to impute any values. Perhaps we should support a flag or something... If you're positive that you don't want the error to be raised then the easiest solution would probably be something like this.
If everything is missing then this will reallocate your array to be Vector{Missing}. Depending on your data using something like ResultTypes.jl with a condition on the error case would allocate less memory, but be slightly more verbose.
As the following code shows, i want to forward fill missing values use Impute.locf function, but just within the same :id
Unexpectedly, it raises
this is clearly beacause there are all missing value under the same :id=2, but the following code
completed with no error. It just leaves all values missing, which is the desired result
My questions are:
Thanks in advance!
The text was updated successfully, but these errors were encountered: