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

refactor(rust): Make all emw function expr non-anonymous #11638

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

romanovacca
Copy link
Contributor

No description provided.

@github-actions github-actions bot added internal An internal refactor or improvement rust Related to Rust Polars labels Oct 10, 2023
@romanovacca
Copy link
Contributor Author

Locally no errors with make test and make pre-commit, can i do something about these errors?

Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Almost there @romanovacca. We can use the already existing mapper functions to get the proper dtype.

_ => DataType::Float64,
}),
#[cfg(feature = "ewma")]
EwmStd { .. } => mapper.map_dtype(|dt| match dt {
Copy link
Member

Choose a reason for hiding this comment

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

We have mapper.map_to_float_dtype

Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Looks great! TY!

@ritchie46
Copy link
Member

@romanovacca can you do a rebase? Then it is good to go.

@romanovacca
Copy link
Contributor Author

Im messing up the rebase, trying to fix it

@romanovacca romanovacca reopened this Oct 16, 2023
@ritchie46
Copy link
Member

Alright! Here it goes. Thanks!

@ritchie46 ritchie46 merged commit 7efc54e into pola-rs:main Oct 16, 2023
18 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants