File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,9 @@ The :ref:`Timedeltas <timeseries.timedeltas>` docs.
298
298
`Operating with timedeltas
299
299
<https://github.com/pydata/pandas/pull/2899> `__
300
300
301
+ `Create timedeltas with date differences
302
+ <http://stackoverflow.com/questions/15683588/iterating-through-a-pandas-dataframe> `__
303
+
301
304
Aliasing Axis Names
302
305
-------------------
303
306
Original file line number Diff line number Diff line change @@ -836,9 +836,9 @@ convert to an integer index:
836
836
.. ipython :: python
837
837
838
838
df_new = df.reset_index()
839
- df_new[df_new. index == 1.0 ]
839
+ df_new[df_new[ ' index' ] == 1.0 ]
840
840
# 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 )]
842
842
843
843
844
844
.. _indexing.class :
You can’t perform that action at this time.
0 commit comments