Using Explorer, I have a df where rows have id, size columns. the df has multiple entries for 1 id, but sometimes has a nil in the size column.
I’m trying to grab all the ids that have at least 1 nil value in the size column, to later exclude them from my df.
I try this:
ids_to_exclude =
df
|> DataFrame.filter(size == nil)
But get the following error:
** (ArgumentError) cannot invoke Explorer.Series.equal/2 with mismatched dtypes: :string and nil
(explorer 0.8.1) lib/explorer/series.ex:6274: Explorer.Series.dtype_mismatch_error/3
#cell:jtyrwno7aej2bj3n:3: (file)
#cell:jtyrwno7aej2bj3n:3: (file)
I can’t figure out what’s the correct/expected approach to handling this without doing this in plain elixir.
Any help would be much appreciated!
Thanks