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

Method __iter__

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

Source from the content-addressed store, hash-verified

4149
4150 @derived_from(pd.Series)
4151 def __iter__(self):
4152 frame = self.optimize()
4153 for i in range(self.npartitions):
4154 s = frame.get_partition(i).compute()
4155 yield from s
4156
4157 def __getitem__(self, key):
4158 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