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

Method __iter__

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

Source from the content-addressed store, hash-verified

4179
4180 @derived_from(pd.Series)
4181 def __iter__(self):
4182 frame = self.optimize()
4183 for i in range(self.npartitions):
4184 s = frame.get_partition(i).compute()
4185 yield from s
4186
4187 def __getitem__(self, key):
4188 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