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

Method __getitem__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

FilterClass · 0.85
ProjectionClass · 0.85

Tested by

no test coverage detected