Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
teomac committed Mar 4, 2025
1 parent e8d4acb commit 1ce2b68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/polars-ops/src/chunked_array/array/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub trait ArrayNameSpace: AsArray {
fn array_lengths(&self) -> Column {
let ca = self.as_array();
Series::new(ca.name().clone(), vec![ca.width() as IdxSize; ca.len()]).into_column()
}
}

fn array_max(&self) -> Series {
let ca = self.as_array();
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/series/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def len(self) -> Series:
Examples
--------
>>> s = (pl.Series("a", [[1, 2], [4, 3]], dtype=pl.Array(pl.Int64, 2)))
>>> s = pl.Series("a", [[1, 2], [4, 3]], dtype=pl.Array(pl.Int64, 2))
>>> s.arr.len()
shape: (2,)
Series: 'a' [u32]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def test_array_lengths() -> None:
)
assert_frame_equal(out, expected_df)


def test_arr_unique() -> None:
df = pl.DataFrame(
{"a": pl.Series("a", [[1, 1], [4, 3]], dtype=pl.Array(pl.Int64, 2))}
Expand Down

0 comments on commit 1ce2b68

Please sign in to comment.