Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Feb 1, 2024
1 parent ed93aa7 commit a24c6c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dask_expr/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def operand(self, key):

def dependencies(self):
# Dependencies are `Expr` operands only
return [operand for operand in operands if isinstance(operand, Expr)]
return [operand for operand in self.operands if isinstance(operand, Expr)]

def _task(self, index: int):
"""The task for the i'th partition
Expand Down
3 changes: 2 additions & 1 deletion dask_expr/tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import dask.array as da
import numpy as np
import pytest
from dask.dataframe._compat import PANDAS_GE_210
from dask.dataframe._compat import PANDAS_GE_210, PANDAS_GE_220
from dask.dataframe.utils import UNKNOWN_CATEGORIES
from dask.utils import M

Expand Down Expand Up @@ -1035,6 +1035,7 @@ def test_head_down(df):
assert not isinstance(optimized.expr, expr.Head)


@pytest.mark.skipif(not PANDAS_GE_220, reason="not implemented")
def test_case_when(pdf, df):
result = df.x.case_when([(df.x.eq(1), 1), (df.y == 10, 2.5)])
expected = pdf.x.case_when([(pdf.x.eq(1), 1), (pdf.y == 10, 2.5)])
Expand Down

0 comments on commit a24c6c9

Please sign in to comment.