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

Method __getitem__

dask/dataframe/dask_expr/_expr.py:163–167  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

161 raise
162
163 def __getitem__(self, other):
164 if isinstance(other, Expr):
165 return Filter(self, other)
166 else:
167 return Projection(self, other) # df[["a", "b", "c"]]
168
169 def __bool__(self):
170 raise ValueError(

Callers

nothing calls this directly

Calls 2

FilterClass · 0.85
ProjectionClass · 0.85

Tested by

no test coverage detected