Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: %/%, %% translation and add floor_div, mod, eq_missig and neq_missing #526

Merged
merged 5 commits into from
Nov 20, 2023

Conversation

eitsupi
Copy link
Collaborator

@eitsupi eitsupi commented Nov 20, 2023

The order of functions has been slightly changed in the file for readability.

Note that there is currently a problem with Polars' mod (pola-rs/polars#10570).
(I wasn't sure if I should stop subscribing to %% because of this problem, but I am anyway)

Also note that the function name are different here than in rust-polars (rem v.s. mod) because mod is a reserved word in Rust.

Another problem is that py-polars and rust-polars may have different names for these functions.
For these functions r-polars seems to have adopted many of the ones from rust-polars so far, so I'm going to use floor_div and neq_missing instead of floordiv and ne_missing in py-polars.

@eitsupi eitsupi marked this pull request as ready for review November 20, 2023 13:08
@eitsupi

This comment was marked as outdated.

@eitsupi eitsupi added this to the 0.11 milestone Nov 20, 2023
Copy link
Collaborator

@etiennebacher etiennebacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, just some minor stuff on docs

Comment on lines +1570 to +1572
#' pl$col("a")$shift(-2)$alias("shift-2"),
#' pl$col("a")$shift(2)$alias("shift+2")
#' )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this indentation wrong? We do want some additional indentation when we are in with_columns() (I guess this is styler's fault)

Same thing for all other changes like this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly.
We'll probably need to create an issue in the styler repository.

@eitsupi eitsupi merged commit 10004c0 into main Nov 20, 2023
31 checks passed
@eitsupi eitsupi deleted the more-operator branch November 20, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants