Skip to content

Commit

Permalink
fixed Python ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thobai committed Jun 13, 2024
1 parent 0241501 commit eed8c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tdigest_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import polars as pl
from polars.plugins import register_plugin_function
from tdigest_plugin.utils import parse_into_expr, parse_version

from tdigest_plugin.utils import parse_version

if TYPE_CHECKING:
from polars.type_aliases import IntoExpr
Expand Down
6 changes: 3 additions & 3 deletions tests/test_estimate_quantiles.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from decimal import InvalidOperation

import polars as pl
import pytest
from polars import Float32, Float64, Int16, Int32, Utf8, col
from polars import Float32, Int32, Utf8, col

from tdigest_plugin import estimate_median, estimate_quantile, tdigest

df_int = pl.DataFrame(
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_estimate_quantile_f32():
def test_estimate_quantile_utf8():

with pytest.raises(pl.exceptions.ComputeError):
df_median = (
(
df_float.with_columns(col("values").cast(Utf8))
.group_by("group")
.agg(
Expand Down

0 comments on commit eed8c96

Please sign in to comment.