Skip to content

dataframe combining logical masks #14518

@tino376dev

Description

@tino376dev

Describe the bug

I would like to combine logical masks as presented in the documenation

How to reproduce

running:

(true | polars into-df) and (false | polars into-df)

returns:

Error: nu::shell::type_mismatch

  × Type mismatch.
   ╭─[entry #25:1:9]
 1 │ (true | polars into-df) and (false | polars into-df)
   ·         ───────┬──────
   ·                ╰── expected bool
   ╰────

Expected behavior

not error

Configuration

key value
version 0.100.0
major 0
minor 100
patch 0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.83.0 (90b35a623 2024-11-26)
rust_channel stable-x86_64-unknown-linux-gnu
cargo_version cargo 1.83.0 (5ffbef321 2024-10-29)
build_time 2024-12-03 06:08:48 +01:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash
installed_plugins polars 0.100.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:plugin-polarsWork related to the polars dataframe implementationstatus:needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions