The ColumnNotFoundError error is thrown when a column is missing from the provided column list.
There can be situations when having optional columns; in these cases having a non-strict column selection would simplify the code.
(as workaround I am using list comprehension to remove the non-existing columns from the column list before the .select())
Something like cs.any_of() (inspired by tidyselect).
Description
The
ColumnNotFoundError
error is thrown when a column is missing from the provided column list.There can be situations when having optional columns; in these cases having a non-strict column selection would simplify the code.
(as workaround I am using list comprehension to remove the non-existing columns from the column list before the
.select()
)Something like
cs.any_of()
(inspired by tidyselect).