Skip to content

Adding & removing a selection #158

@cceyda

Description

@cceyda

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions