def iteritems(self) -> Iterator[Tuple[(Name, 'Series')]]:
    "\n        Iterator over (column name, Series) pairs.\n\n        Iterates over the DataFrame columns, returning a tuple with\n        the column name and the content as a Series.\n\n        Returns\n        -------\n        label : object\n            The column names for the DataFrame being iterated over.\n        content : Series\n            The column entries belonging to each label, as a Series.\n\n        Examples\n        --------\n        >>> df = ps.DataFrame({'species': ['bear', 'bear', 'marsupial'],\n        ...                    'population': [1864, 22000, 80000]},\n        ...                   index=['panda', 'polar', 'koala'],\n        ...                   columns=['species', 'population'])\n        >>> df\n                 species  population\n        panda       bear        1864\n        polar       bear       22000\n        koala  marsupial       80000\n\n        >>> for label, content in df.iteritems():\n        ...    print('label:', label)\n        ...    print('content:', content.to_string())\n        ...\n        label: species\n        content: panda         bear\n        polar         bear\n        koala    marsupial\n        label: population\n        content: panda     1864\n        polar    22000\n        koala    80000\n        "
    return (((label if (len(label) > 1) else label[0]), self._psser_for(label)) for label in self._internal.column_labels)
Iterator over (column name, Series) pairs.

Iterates over the DataFrame columns, returning a tuple with
the column name and the content as a Series.

Returns
-------
label : object
    The column names for the DataFrame being iterated over.
content : Series
    The column entries belonging to each label, as a Series.

Examples
--------
>>> df = ps.DataFrame({'species': ['bear', 'bear', 'marsupial'],
...                    'population': [1864, 22000, 80000]},
...                   index=['panda', 'polar', 'koala'],
...                   columns=['species', 'population'])
>>> df
         species  population
panda       bear        1864
polar       bear       22000
koala  marsupial       80000

>>> for label, content in df.iteritems():
...    print('label:', label)
...    print('content:', content.to_string())
...
label: species
content: panda         bear
polar         bear
koala    marsupial
label: population
content: panda     1864
polar    22000
koala    80000
def iteritems(self) -> Iterator[Tuple[(Name, 'Series')]]:
    "\n        Iterator over (column name, Series) pairs.\n\n        Iterates over the DataFrame columns, returning a tuple with\n        the column name and the content as a Series.\n\n        Returns\n        -------\n        label : object\n            The column names for the DataFrame being iterated over.\n        content : Series\n            The column entries belonging to each label, as a Series.\n\n        Examples\n        --------\n        >>> df = ps.DataFrame({'species': ['bear', 'bear', 'marsupial'],\n        ...                    'population': [1864, 22000, 80000]},\n        ...                   index=['panda', 'polar', 'koala'],\n        ...                   columns=['species', 'population'])\n        >>> df\n                 species  population\n        panda       bear        1864\n        polar       bear       22000\n        koala  marsupial       80000\n\n        >>> for label, content in df.iteritems():\n        ...    print('label:', label)\n        ...    print('content:', content.to_string())\n        ...\n        label: species\n        content: panda         bear\n        polar         bear\n        koala    marsupial\n        label: population\n        content: panda     1864\n        polar    22000\n        koala    80000\n        "
    return (((label if (len(label) > 1) else label[0]), self._psser_for(label)) for label in self._internal.column_labels)