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
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/pandas/dataframe/dataframe-iteritems.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics