Pandas DataFrame: iteritems() function
DataFrame - iteritems() function
The iteritems() function is used to iterator over (column name, Series) pairs.
Iterates over the DataFrame columns, returning a tuple with the column name and the content as a Series.
Syntax:DataFrame.iteritems(self)
Returns:
- label : object
The column names for the DataFrame being iterated over. - content : Series
The column entries belonging to each label, as a Series.
Example:
Download the Pandas DataFrame Notebooks from here.
Previous: DataFrame - items() function
Next: DataFrame - iterrows() function
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics