MCPcopy Index your code
hub / github.com/PyTables/PyTables / __iter__

Method __iter__

tables/table.py:1897–1919  ·  view source on GitHub ↗

Iterate over the table using a Row instance. This is equivalent to calling :meth:`Table.iterrows` with default arguments, i.e. it iterates over *all the rows* in the table. See Also -------- tableextension.Row : the table row iterator and field accessor

(self)

Source from the content-addressed store, hash-verified

1895 return row._iter(start, stop, step)
1896
1897 def __iter__(self) -> Iterator[tableextension.Row]:
1898 """Iterate over the table using a Row instance.
1899
1900 This is equivalent to calling :meth:`Table.iterrows` with default
1901 arguments, i.e. it iterates over *all the rows* in the table.
1902
1903 See Also
1904 --------
1905 tableextension.Row : the table row iterator and field accessor
1906
1907 Examples
1908 --------
1909 ::
1910
1911 result = [ row['var2'] for row in table if row['var1'] <= 20 ]
1912
1913 Which is equivalent to::
1914
1915 result = [ row['var2'] for row in table.iterrows()
1916 if row['var1'] <= 20 ]
1917
1918 """
1919 return self.iterrows()
1920
1921 def _read(
1922 self,

Callers

nothing calls this directly

Calls 1

iterrowsMethod · 0.95

Tested by

no test coverage detected