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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework