MCPcopy Create free account
hub / github.com/dask/dask / __getattr__

Method __getattr__

dask/dataframe/dask_expr/_collection.py:641–655  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

639 )
640
641 def __getattr__(self, key):
642 try:
643 # Prioritize `FrameBase` attributes
644 return object.__getattribute__(self, key)
645 except AttributeError as err:
646 try:
647 # Fall back to `expr` API
648 # (Making sure to convert to/from Expr)
649 val = getattr(self.expr, key)
650 if callable(val):
651 return functools.partial(_wrap_expr_api, wrap_api=val)
652 return val
653 except AttributeError:
654 # Raise original error
655 raise err
656
657 def visualize(self, tasks: bool = False, **kwargs): # type: ignore[override]
658 """Visualize the expression or task graph

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected