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

notify

Remove unblock and remove iterator.

Attributes

accessible_size

Returns current accessible data size.

current_index

Returns the current index.

df_name

Returns the df name.

id

__init__(df: DataFrame, block: bool = True)[source]
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.

notify()[source]

Remove unblock and remove iterator.