Skip to content

Commit

Permalink
python polars 0.16.0 (#6546)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Jan 29, 2023
1 parent c4f0f0c commit 62d9e8d
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion polars/polars-arrow/src/kernels/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ mod test {
]);
let val = UInt32Array::from_slice(&[0; 10]);
let out = set_with_mask(&val, &mask, 1, DataType::UInt32);
dbg!(&out);
assert_eq!(out.values().as_slice(), &[0, 1, 0, 1, 0, 1, 0, 1, 0, 0]);

let val = UInt32Array::from(&[None, None, None]);
Expand Down
5 changes: 0 additions & 5 deletions polars/polars-core/src/chunked_array/ops/take/take_single.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::convert::TryFrom;
use std::process::exit;

use arrow::array::*;
use polars_arrow::is_valid::IsValid;
Expand All @@ -10,10 +9,6 @@ use crate::prelude::*;

macro_rules! impl_take_random_get {
($self:ident, $index:ident, $array_type:ty) => {{
if $index >= $self.len() {
dbg!($self, $index);
exit(1);
}
assert!($index < $self.len());
let (chunk_idx, idx) = $self.index_to_chunked_index($index);
// Safety:
Expand Down
2 changes: 1 addition & 1 deletion polars/polars-io/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn test_filter() -> PolarsResult<()> {
let out = df.filter(&df.column("fats_g")?.gt(4)?)?;

// this fails if all columns are not equal.
dbg!(out);
println!("{out}");

Ok(())
}
2 changes: 1 addition & 1 deletion polars/polars-lazy/polars-plan/src/dsl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ impl Expr {
/// sum("values").over([col("groups")]),
/// ])
/// .collect()?;
/// dbg!(&out);
/// println!("{}", &out);
/// Ok(())
/// }
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ impl OptimizationRule for SimplifyExprRule {
#[allow(clippy::manual_map)]
let out = match op {
Operator::Plus => {
match dbg!(eval_binary_same_type!(left_aexpr, +, right_aexpr)) {
match eval_binary_same_type!(left_aexpr, +, right_aexpr) {
Some(new) => Some(new),
None => {
// try to replace addition of string columns with `concat_str`
Expand Down
1 change: 0 additions & 1 deletion polars/polars-lazy/src/tests/aggregations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ fn test_power_in_agg_list1() -> PolarsResult<()> {
},
)
.collect()?;
dbg!(&out);

let agg = out.column("foo")?.list()?;
let first = agg.get(0).unwrap();
Expand Down
1 change: 0 additions & 1 deletion polars/polars-lazy/src/tests/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@ fn test_simplify_expr() {
.optimize_loop(rules, &mut expr_arena, &mut lp_arena, lp_top)
.unwrap();
let plan = node_to_lp(lp_top, &mut expr_arena, &mut lp_arena);
dbg!(&plan);
assert!(
matches!(plan, LogicalPlan::Projection{ expr, ..} if matches!(&expr[0], Expr::BinaryExpr{left, ..} if **left == Expr::Literal(LiteralValue::Float32(2.0))))
);
Expand Down
2 changes: 1 addition & 1 deletion py-polars/Cargo.lock

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

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.15.18"
version = "0.16.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit 62d9e8d

Please sign in to comment.