From 33bcf73006e4fc0687de8d36efc5af0af6e16324 Mon Sep 17 00:00:00 2001 From: tp Date: Mon, 3 Jun 2019 23:19:14 +0200 Subject: [PATCH] Minor doc cleanup because of Panel removal --- doc/source/getting_started/basics.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 80e334054a986..5ec0094de0a91 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -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: @@ -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: