Skip to content

Add Xor to polars plugin nu_expressions#15249

Merged
ayax79 merged 2 commits intonushell:mainfrom
MMesch:mmesch/polars-add-Xor
Mar 5, 2025
Merged

Add Xor to polars plugin nu_expressions#15249
ayax79 merged 2 commits intonushell:mainfrom
MMesch:mmesch/polars-add-Xor

Conversation

@MMesch
Copy link
Copy Markdown
Contributor

@MMesch MMesch commented Mar 5, 2025

solution for #15242 , based on PR #15248 .

Allows doing this:

~/Projects/nushell> [[a, b]; [1., 2.], [3.,3.], [4., 6.]] | polars into-df | polars filter (((polars col a) < 2) xor ((polars col b) > 5))
╭───┬──────┬──────╮
│ # │  a   │  b   │
├───┼──────┼──────┤
│ 0 │ 1.00 │ 2.00 │
│ 1 │ 4.00 │ 6.00 │
╰───┴──────┴──────╯

@fdncred fdncred added A:plugin-polars Work related to the polars dataframe implementation deprecated:pr-plugins Deprecated: use the A:plugins label instead labels Mar 5, 2025
@ayax79 ayax79 merged commit 88bbe4a into nushell:main Mar 5, 2025
15 checks passed
@ayax79
Copy link
Copy Markdown
Contributor

ayax79 commented Mar 5, 2025

Looks good, thanks!

@github-actions github-actions bot added this to the v0.103.0 milestone Mar 5, 2025
ayax79 pushed a commit that referenced this pull request Mar 5, 2025
This PR (based on #15249 and #15248 because it mentions them) adds extra
documentation to the main polars command outlining the main datatypes
that are used by the plugin. The lack of a description of the types
involved in `polars xxx` commands was quite confusing to me when I
started using the plugin and this is a first try improving it.

I didn't find a better place but please let me know what you think.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A:plugin-polars Work related to the polars dataframe implementation deprecated:pr-plugins Deprecated: use the A:plugins label instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants