Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions doc/source/getting_started/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1455,9 +1455,8 @@ Iteration

The behavior of basic iteration over pandas objects depends on the type.
When iterating over a Series, it is regarded as array-like, and basic iteration
produces the values. Other data structures, like DataFrame,
follow the dict-like convention of iterating over the "keys" of the
objects.
produces the values. DataFrames follow the dict-like convention of iterating
over the "keys" of the objects.

In short, basic iteration (``for i in object``) produces:

Expand Down Expand Up @@ -1537,9 +1536,9 @@ For example:

.. ipython:: python

for item, frame in df.iteritems():
print(item)
print(frame)
for label, ser in df.iteritems():
print(label)
print(ser)

.. _basics.iterrows:

Expand Down