deepscatter
deepscatter copied to clipboard
Adding & removing a selection
From the example codes I see you can add a selection using select_and_plot
:
scatterplot.select_and_plot({name: name, ids: select_ids, idField: id_column})
Which then adds a boolean column with the given name
.
But I'm having trouble deleting this column afterwards
I have tried scatterplot.dataset.delete_column_if_exists(name)
which just crashes without error (I couldn't debug it)
Also tried modifying the selection using.
selection.addPoints(name,select_ids_bigint)
(where selection is a DataSelection type)
but this errors out saying name
column already exists.
Is there a better way to do selections using transformation
stuff directly?