Skip to content

Commit 2cab493

Browse files
committed
DOC: minor cookbook/io doc corrections
1 parent 1957796 commit 2cab493

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/source/cookbook.rst

+3
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ The :ref:`Timedeltas <timeseries.timedeltas>` docs.
298298
`Operating with timedeltas
299299
<https://github.com/pydata/pandas/pull/2899>`__
300300

301+
`Create timedeltas with date differences
302+
<http://stackoverflow.com/questions/15683588/iterating-through-a-pandas-dataframe>`__
303+
301304
Aliasing Axis Names
302305
-------------------
303306

doc/source/indexing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,9 @@ convert to an integer index:
836836
.. ipython:: python
837837
838838
df_new = df.reset_index()
839-
df_new[df_new.index == 1.0]
839+
df_new[df_new['index'] == 1.0]
840840
# now you can also do "float selection"
841-
df_new[(df_new.index >= 1.0) & (df_new.index < 2)]
841+
df_new[(df_new['index'] >= 1.0) & (df_new['index'] < 2)]
842842
843843
844844
.. _indexing.class:

0 commit comments

Comments
 (0)