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

Method __iter__

dask/dataframe/dask_expr/_collection.py:4132–4136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4130
4131 @derived_from(pd.Series)
4132 def __iter__(self):
4133 frame = self.optimize()
4134 for i in range(self.npartitions):
4135 s = frame.get_partition(i).compute()
4136 yield from s
4137
4138 def __getitem__(self, key):
4139 if isinstance(key, Series) or self.npartitions == 1:

Callers

nothing calls this directly

Calls 3

get_partitionMethod · 0.80
optimizeMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected