Skip to content

Commit 5790132

Browse files
committed
Change header underline etc.
1 parent 8915c5c commit 5790132

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/source/getting_started/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ To iterate over the rows of a DataFrame, you can use the following methods:
15251525
df
15261526
15271527
items
1528-
~~~~~~~~~
1528+
~~~~~
15291529

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

pandas/core/generic.py

+4
Original file line numberDiff line numberDiff line change
@@ -1940,6 +1940,10 @@ def items(self):
19401940
"""Iterate over (label, values) on info axis
19411941
19421942
This is index for Series and columns for DataFrame.
1943+
1944+
Returns
1945+
-------
1946+
Generator
19431947
"""
19441948
for h in self._info_axis:
19451949
yield h, self[h]

0 commit comments

Comments
 (0)