Is there a dropna() for DataFrame?

Right, I’ll file issues to begin with :slight_smile:
Here is one on DataTables including a modification of @mwsohn code https://github.com/JuliaData/DataTables.jl/issues/38
I just realized that lm already deals with NAs so maybe there is no reason to open a further issue there.

Actually, what I think is more useful is a dropna which returns a data frame, not a boolean array like completecases, after dropping rows with NAs or NULLs on some columns. My two cents.

That’s actually what dropnull does in DataTables now:
https://github.com/JuliaData/DataTables.jl/pull/6

1 Like

For the col-specific case, and possibly every case for consistency, I think it should return a view.