towhee.dataframe.iterators.DataFrameIterator¶
- class towhee.dataframe.iterators.DataFrameIterator(df: DataFrame, block: bool = True)[source]¶
Bases:
object
Base iterator implementation. All iterators should be subclasses of DataFrameIterator.
- Parameters:
df (Dataframe) – The dataframe to iterate over.
block (bool) – Whether to block on call.
Methods
Remove unblock and remove iterator.
Attributes
Returns current accessible data size.
Returns the current index.
Returns the df name.
id
- property accessible_size: int¶
Returns current accessible data size.
- property current_index: int¶
Returns the current index.
- property df_name: str¶
Returns the df name.