Skip to content

Commit d5fad24

Browse files
topper-123vaibhavhrt
authored andcommitted
Minor doc cleanup because of Panel removal (pandas-dev#26638)
1 parent b1e4c55 commit d5fad24

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/source/getting_started/basics.rst

+5-6
Original file line numberDiff line numberDiff line change
@@ -1455,9 +1455,8 @@ Iteration
14551455

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

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

@@ -1537,9 +1536,9 @@ For example:
15371536

15381537
.. ipython:: python
15391538
1540-
for item, frame in df.iteritems():
1541-
print(item)
1542-
print(frame)
1539+
for label, ser in df.iteritems():
1540+
print(label)
1541+
print(ser)
15431542
15441543
.. _basics.iterrows:
15451544

0 commit comments

Comments
 (0)