Closed jesusestevez closed 6 days ago
It doesn't mention what error you get or the pl.show_versions()
output, but this is what I get on 1.14.0
lookup.with_columns(pl.col("lookup_result") * pl.col("exposure"))
# shape: (3, 4)
# ┌────────────┬──────────────────┬───────────┬───────────────┐
# │ sets ┆ optional_members ┆ exposure ┆ lookup_result │
# │ --- ┆ --- ┆ --- ┆ --- │
# │ list[str] ┆ list[str] ┆ list[i64] ┆ list[i64] │
# ╞════════════╪══════════════════╪═══════════╪═══════════════╡
# │ ["a", "b"] ┆ ["a", "b"] ┆ [1, 2] ┆ [1, 2] │
# │ ["a", "b"] ┆ ["a", "b"] ┆ [3, 4] ┆ [3, 4] │
# │ ["a", "b"] ┆ ["a", "c"] ┆ [5, 6] ┆ [5, 0] │
# └────────────┴──────────────────┴───────────┴───────────────┘
I missed an update. Thanks for the feedback!
Checks
Reproducible example
Log output
No response
Issue description
Following #8006 , I would expect list multiplication to be allowed for boolean dtypes, behaving as the list division. However, it seems it is not supported. Is there any reason for this behaviour?
Expected behavior
I would expect the multiplication (when one of the columns is bool dtype, to behave as the division:
Installed versions