Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Sep 13, 2024
1 parent e797f70 commit b4b4d52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion crates/polars-core/src/series/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,8 @@ impl Series {
.iter()
.map(|s| s.to_physical_repr().into_owned())
.collect();
let mut ca = StructChunked::from_series(self.name().clone(), fields.iter()).unwrap();
let mut ca =
StructChunked::from_series(self.name().clone(), fields.iter()).unwrap();

if arr.null_count() > 0 {
ca.zip_outer_validity(arr);
Expand Down
8 changes: 5 additions & 3 deletions crates/polars-expr/src/expressions/aggregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,11 @@ impl PartitionedAggregation for AggregationExpr {
};
let mut count_s = series.agg_valid_count(groups);
count_s.rename(PlSmallStr::from_static("__POLARS_COUNT"));
Ok(StructChunked::from_series(new_name, [agg_s, count_s].iter())
.unwrap()
.into_series())
Ok(
StructChunked::from_series(new_name, [agg_s, count_s].iter())
.unwrap()
.into_series(),
)
}
},
GroupByMethod::Implode => {
Expand Down
3 changes: 2 additions & 1 deletion crates/polars-ops/src/chunked_array/strings/json_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ mod tests {
[
Series::new("a".into(), &[None, Some(1), Some(2), None]),
Series::new("b".into(), &[None, Some("hello"), Some("goodbye"), None]),
].iter(),
]
.iter(),
)
.unwrap()
.with_outer_validity_chunked(BooleanChunked::new("".into(), [false, true, true, false]))
Expand Down

0 comments on commit b4b4d52

Please sign in to comment.