File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
doc/source/getting_started Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1455,9 +1455,8 @@ Iteration
14551455
14561456The behavior of basic iteration over pandas objects depends on the type.
14571457When 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
14621461In 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
You can’t perform that action at this time.
0 commit comments