Skip to content

Commit 0b20bf5

Browse files
committed
Change header underline etc.
1 parent 8d24977 commit 0b20bf5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

doc/source/getting_started/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ To iterate over the rows of a DataFrame, you can use the following methods:
15241524
df
15251525
15261526
items
1527-
~~~~~~~~~
1527+
~~~~~
15281528

15291529
Consistent with the dict-like interface, :meth:`~DataFrame.items` iterates
15301530
through key-value pairs:

pandas/core/generic.py

+8
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,10 @@ def items(self):
18421842
"""Iterate over (label, values) on info axis
18431843
18441844
This is index for Series and columns for DataFrame.
1845+
1846+
Returns
1847+
-------
1848+
Generator
18451849
"""
18461850
for h in self._info_axis:
18471851
yield h, self[h]
@@ -1850,6 +1854,10 @@ def items(self):
18501854
18511855
.. deprecated :: 0.25.0
18521856
Use :attr:`%(klass)s.items` instead.
1857+
1858+
Returns
1859+
-------
1860+
Generator
18531861
""")
18541862

18551863
@Appender(_shared_docs["iteritems"] % _shared_doc_kwargs)

0 commit comments

Comments
 (0)