Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding & removing a selection #158

Open
cceyda opened this issue Oct 4, 2024 · 0 comments
Open

Adding & removing a selection #158

cceyda opened this issue Oct 4, 2024 · 0 comments

Comments

@cceyda
Copy link

cceyda commented Oct 4, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant