File tree 1 file changed +5
-6
lines changed
doc/source/getting_started
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1455,9 +1455,8 @@ Iteration
1455
1455
1456
1456
The behavior of basic iteration over pandas objects depends on the type.
1457
1457
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.
1461
1460
1462
1461
In short, basic iteration (``for i in object ``) produces:
1463
1462
@@ -1537,9 +1536,9 @@ For example:
1537
1536
1538
1537
.. ipython :: python
1539
1538
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 )
1543
1542
1544
1543
.. _basics.iterrows :
1545
1544
You can’t perform that action at this time.
0 commit comments