Skip to content

Commit

Permalink
python polars 0.19.16 (#12678)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Nov 25, 2023
1 parent f342d5a commit de2a5ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions crates/polars-arrow/src/legacy/kernels/rolling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,7 @@ where
T: IsFloat + NativeType + PartialOrd,
{
if T::is_float() {
buf.sort_by(|a, b| {
match (a.is_nan(), b.is_nan()) {
// safety: we checked nans
(false, false) => unsafe { a.partial_cmp(b).unwrap_unchecked() },
(true, true) => Ordering::Equal,
(true, false) => Ordering::Greater,
(false, true) => Ordering::Less,
}
});
buf.sort_by(|a, b| compare_fn_nan_max(a, b));
} else {
// Safety:
// all integers are Ord
Expand Down
2 changes: 1 addition & 1 deletion py-polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "py-polars"
version = "0.19.15"
version = "0.19.16"
edition = "2021"

[lib]
Expand Down

0 comments on commit de2a5ef

Please sign in to comment.