Skip to content

Commit f61d7e3

Browse files
committed
DOC: basics.rst fix tiny error
1 parent a14cbd0 commit f61d7e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/basics.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,10 @@ For instance, a contrived way to transpose the dataframe would be:
857857

858858
.. ipython:: python
859859
860-
df = DataFrame([[1, 1.0]], columns=['x', 'y'])
861-
row = next(df.iterrows())[1]
860+
df_iter = DataFrame([[1, 1.0]], columns=['x', 'y'])
861+
row = next(df_iter.iterrows())[1]
862862
print row['x'].dtype
863-
print df['x'].dtype
863+
print df_iter['x'].dtype
864864
865865
itertuples
866866
~~~~~~~~~~

0 commit comments

Comments
 (0)