Skip to content

Raise if remove_columns is called with unknown column by default #807

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

Currently, Table.remove_columns ignores unknown columns by default. However, then it can happen that users expect that certain columns are removed, but they are still there due to a typo.

Desired solution

Add a new optional, keyword-only parameter ignore_unknown_names: bool = False.

If ignore_unknown_names is False, call _check_columns_exist to ensure that all given names are valid. Otherwise, keep the current behavior.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Labels

releasedIncluded in a release

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions