Skip to content

Commit 136c6c0

Browse files
committed
Change header underline etc.
1 parent a20cb6d commit 136c6c0

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
@@ -1877,6 +1877,10 @@ def items(self):
18771877
"""Iterate over (label, values) on info axis
18781878
18791879
This is index for Series and columns for DataFrame.
1880+
1881+
Returns
1882+
-------
1883+
Generator
18801884
"""
18811885
for h in self._info_axis:
18821886
yield h, self[h]
@@ -1885,6 +1889,10 @@ def items(self):
18851889
18861890
.. deprecated :: 0.25.0
18871891
Use :attr:`%(klass)s.items` instead.
1892+
1893+
Returns
1894+
-------
1895+
Generator
18881896
""")
18891897

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

0 commit comments

Comments
 (0)