Skip to content

Commit

Permalink
Core
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Feb 19, 2024
1 parent 35b1498 commit e1f6ef3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dask_expr/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from dask.dataframe.core import is_dataframe_like, is_index_like, is_series_like
from dask.utils import funcname, import_required, is_arraylike

from dask_expr._diagnostics import explain
from dask_expr._util import _BackendData, _tokenize_deterministic


Expand Down Expand Up @@ -111,6 +112,21 @@ def _tree_repr_lines(self, indent=0, recursive=True):
def tree_repr(self):
return os.linesep.join(self._tree_repr_lines())

def _explain_label(self):
return "".join(
[
"<{<b>",
funcname(type(self)),
"</b> | ",
"npartitions: ",
str(self.npartitions),
"}>",
]
)

def explain(self, fuse: bool = True) -> None:
explain(self, fuse)

def pprint(self):
for line in self._tree_repr_lines():
print(line)
Expand Down

0 comments on commit e1f6ef3

Please sign in to comment.