# Something missing in Missings

**URL:** <https://discourse.julialang.org/t/something-missing-in-missings/9242>\
**Category:** General Usage\
**Created:** [February 22, 2018, 1:29am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242 "2018-02-22T01:29:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivo\_welch](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)\
**Post date:** [February 22, 2018, 1:29am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/1 "2018-02-22T01:29:01Z")

</div>

I think an update has just hosed Missings. On my system, stuff that I recalled having worked yesterday no longer seems to work.

on JuliaPro 0.6.2.1:

```julia
julia> using Missings;
INFO: Precompiling module Missings.
ERROR: LoadError: UndefVarError: IteratorSize not defined
Stacktrace:
 [1] include_from_node1(::String) at ./loading.jl:576
 [2] include(::String) at ./sysimg.jl:14
 [3] anonymous at ./<missing>:2
while loading /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/Missings/src/Missings.jl, in expression starting on line 281
ERROR: Failed to precompile Missings to /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/lib/v0.6/Missings.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:710
 [2] _require(::Symbol) at ./loading.jl:463
 [3] require(::Symbol) at ./loading.jl:405

```

on Julia 0.6.2, Missings still compiles, but the example from [Introducing Julia/DataFrames - Wikibooks, open books for an open world](https://en.wikibooks.org/wiki/Introducing_Julia/DataFrames) now gives

```julia
julia> ptable = DataFrame( Number = [1, 2, 6, 8, 26],
                            Name = ["Hydrogen", "Helium", "Carbon", "Oxygen", "Iron"],
                            AtomicWeight = [1.0079, 4.0026, 12.0107, 15.9994, 55.845],
                            Symbol = ["H", "He", "C", "O", "Fe"],
                            Discovered = [1776, 1895, 0, 1774, missing]);
julia> ptable[complete_cases(ptable),:]
5×5 DataFrames.DataFrame
│ Row │ Number │ Name │ AtomicWeight │ Symbol │ Discovered │
├─────┼────────┼────────────┼──────────────┼────────┼────────────┤
│ 1 │ 1 │ "Hydrogen" │ 1.0079 │ "H" │ 1776 │
│ 2 │ 2 │ "Helium" │ 4.0026 │ "He" │ 1895 │
│ 3 │ 6 │ "Carbon" │ 12.0107 │ "C" │ 0 │
│ 4 │ 8 │ "Oxygen" │ 15.9994 │ "O" │ 1774 │
│ 5 │ 26 │ "Iron" │ 55.845 │ "Fe" │ missing │

```

and, ironically, dropmissing is missing.

just my installation (reinstall everything?) or wider problem?

---

<div class="post-metadata">

**Author:** ![Yifan\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Post date:** [February 22, 2018, 1:48am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/2 "2018-02-22T01:48:40Z")

</div>

I had the same issue. After I run `using Missings` twice, then it seems OK.

---

<div class="post-metadata">

**Author:** ![ivo\_welch](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)\
**Post date:** [February 22, 2018, 2:13am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/3 "2018-02-22T02:13:34Z")

</div>

not for me…

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [February 22, 2018, 3:45am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/4 "2018-02-22T03:45:20Z")

</div>

Did you `Pkg.update()` recently? Are you on the `master` branch or on the latest tagged release (`Pkg.status("Missings")` will tell)? A new release was tagged 3 days, it does have a commit related to this. I was not able to reproduce your problem and I am on the latest release.

---

<div class="post-metadata">

**Author:** ![iwelch](https://avatars.discourse-cdn.com/v4/letter/i/8c91f0/32.png) [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Post date:** [February 22, 2018, 6:26am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/5 "2018-02-22T06:26:34Z")

</div>

I confirmed this on another computer with a new install of JuliaPro. (I had JuliaPlain on it, though.) MacOS. I would presume I am on the Master branch. I am not developing anything.

```julia
> julia
               _
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: https://docs.julialang.org
   _ _ _| |_ __ _ | Type "?help" for help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
 _/ |\ __'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-apple-darwin14.5.0
` ## inserted for coloring in discourse

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Cloning cache of CodeTools from https://github.com/JunoLab/CodeTools.jl.git
...
INFO: Cloning cache of Hiccup from https://github.com/JunoLab/Hiccup.jl.git
INFO: Computing changes...
INFO: No packages to install, update or remove

julia> using Missings
ERROR: ArgumentError: Module Missings not found in current path.
Run `Pkg.add("Missings")` to install the Missings package.
Stacktrace:
 [1] _require(::Symbol) at ./loading.jl:435
 [2] require(::Symbol) at ./loading.jl:405

julia> Pkg.add("Missings")
INFO: Cloning cache of Missings from https://github.com/JuliaData/Missings.jl.git
INFO: Installing Missings v0.2.6
INFO: Package database updated

julia> using Missings
INFO: Precompiling module Missings.
ERROR: LoadError: UndefVarError: IteratorSize not defined
Stacktrace:
 [1] include_from_node1(::String) at ./loading.jl:576
 [2] include(::String) at ./sysimg.jl:14
 [3] anonymous at ./<missing>:2
while loading /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/v0.6/Missings/src/Missings.jl, in expression starting on line 281
ERROR: Failed to precompile Missings to /Applications/JuliaPro-0.6.2.1.app/Contents/Resources/pkgs-0.6.2.1/lib/v0.6/Missings.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:710
 [2] _require(::Symbol) at ./loading.jl:463
 [3] require(::Symbol) at ./loading.jl:405

```

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [February 22, 2018, 7:52am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/6 "2018-02-22T07:52:07Z")

</div>

[https://github.com/JuliaData/Missings.jl/commit/58f495990fa0a6171794d5394dd624e179eebf80](https://github.com/JuliaData/Missings.jl/commit/58f495990fa0a6171794d5394dd624e179eebf80)

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [February 22, 2018, 3:54pm UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/7 "2018-02-22T15:54:16Z")

</div>

Yea, looks like you are on v0.2.6 and the latest release is v0.2.7 (which should fix your problem).

---

<div class="post-metadata">

**Author:** ![ivo\_welch](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)\
**Post date:** [February 23, 2018, 12:31am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/8 "2018-02-23T00:31:48Z")

</div>

in theory. in practice, under Julia Pro, it does not want to install 0.2.7…

```julia
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating cache of AbstractFFTs...
INFO: Updating cache of SimpleTraits...
INFO: Computing changes...
INFO: No packages to install, update or remove

julia> Pkg.install("Missings")
ERROR: UndefVarError: install not defined

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Updating cache of AbstractFFTs...
INFO: Updating cache of SimpleTraits...
INFO: Computing changes...
INFO: No packages to install, update or remove

julia> Pkg.add("Missings")
INFO: Package Missings is already installed

julia> Pkg.status("Missings")
 - Missings 0.2.6

```

* * *

interestingly, JuliaPlain 0.2.6 picks up the new version, but has different problems now:

```julia
julia> Pkg.add("Missings"); Pkg.status("Missings")
INFO: No packages to install, update or remove
INFO: Package database updated
 - Missings 0.2.7

```

unfortunately, now

```julia
julia> using DataFrames, Missings

julia> ptable = DataFrame( Number = [1, 2, 6, 8, 26],
      Name = ["Hydrogen", "Helium", "Carbon", "Oxygen", "Iron"],
      AtomicWeight = [1.0079, 4.0026, 12.0107, 15.9994, 55.845],
      Symbol = ["H", "He", "C", "O", "Fe"],
      Discovered = [1776, 1895, 0, 1774, missing]);

julia> ptable[complete_cases(ptable),:]
5×5 DataFrames.DataFrame
│ Row │ Number │ Name │ AtomicWeight │ Symbol │ Discovered │
├─────┼────────┼────────────┼──────────────┼────────┼────────────┤
│ 1 │ 1 │ "Hydrogen" │ 1.0079 │ "H" │ 1776 │
│ 2 │ 2 │ "Helium" │ 4.0026 │ "He" │ 1895 │
│ 3 │ 6 │ "Carbon" │ 12.0107 │ "C" │ 0 │
│ 4 │ 8 │ "Oxygen" │ 15.9994 │ "O" │ 1774 │
│ 5 │ 26 │ "Iron" │ 55.845 │ "Fe" │ missing │

```

which, I think, should have removed row 5.

regards,

/iaw

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 23, 2018, 7:27am UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/9 "2018-02-23T07:27:30Z")

</div>

> [@ivo\_welch](#):
>
> which, I think, should have removed row 5.

I can’t replicate this bug, for me it _does_ remove row 5.

```julia
julia> Pkg.status("DataFrames")
 - DataFrames 0.11.5

julia> Pkg.status("Missings")
 - Missings 0.2.7

```

---

<div class="post-metadata">

**Author:** ![ivo\_welch](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)\
**Post date:** [February 23, 2018, 5:18pm UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/10 "2018-02-23T17:18:19Z")

</div>

this seems to be another Pkg issue, here with JuliaPlain 0.6.2:

```julia
julia> Pkg.status("Missings")
 - Missings 0.2.7

julia> Pkg.status("DataFrames")
 - DataFrames 0.10.1

julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove

```

afaik, all I am supposed to do as an end user is `Pkg.add` and `Pkg.update`. the package manager is in charge of selecting the correct version of the packages. I don’t even know how I would force DataFrames into a newer version.

is there a way for me to force these? is this all bugs in Pkg?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 23, 2018, 5:21pm UTC](https://discourse.julialang.org/t/something-missing-in-missings/9242/11 "2018-02-23T17:21:16Z")

</div>

Read through [this topic](https://discourse.julialang.org/t/how-to-upgrade-from-dataframes-0-10-1-to-0-11-3/8243/) for suggestions, but note that some of them may be outdated. Strictly speaking, it is probably not a bug, but some packages holding it back. You have to find and remove those.

In case you are using JuliaPro, that may not be possible because AFAIK it pins some packages.
