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

Method __iter__

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

Source from the content-addressed store, hash-verified

4133
4134 @derived_from(pd.Series)
4135 def __iter__(self):
4136 frame = self.optimize()
4137 for i in range(self.npartitions):
4138 s = frame.get_partition(i).compute()
4139 yield from s
4140
4141 def __getitem__(self, key):
4142 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