Skip to content

Commit 697fe62

Browse files
committed
DOC: timeseries.rst/timedelta not building properly
1 parent 964516a commit 697fe62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/source/timeseries.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,8 @@ Getting scalar results from a ``timedelta64[ns]`` series
955955
y = s - s[0]
956956
y
957957
958+
.. code-block:: python
959+
958960
if LooseVersion(np.__version__) <= '1.6.2':
959961
y.apply(lambda x: x.item().total_seconds())
960962
y.apply(lambda x: x.item().days)
@@ -982,7 +984,7 @@ Series of timedeltas with ``NaT`` values are supported
982984
y = s - s.shift()
983985
y
984986
985-
The can be set to ``NaT`` using ``np.nan`` analagously to datetimes
987+
Elements can be set to ``NaT`` using ``np.nan`` analagously to datetimes
986988

987989
.. ipython:: python
988990
@@ -1003,7 +1005,7 @@ Some timedelta numeric like operations are supported.
10031005
10041006
td - timedelta(minutes=5, seconds=5, microseconds=5)
10051007
1006-
``min, max`` and the corresponding ``idxmin, idxmax`` operations are support on frames
1008+
``min, max`` and the corresponding ``idxmin, idxmax`` operations are supported on frames
10071009

10081010
.. ipython:: python
10091011
@@ -1019,7 +1021,7 @@ Some timedelta numeric like operations are supported.
10191021
df.idxmin()
10201022
df.idxmax()
10211023
1022-
``min, max`` operations are support on series, these return a single element
1024+
``min, max`` operations are supported on series; these return a single element
10231025
``timedelta64[ns]`` Series (this avoids having to deal with numpy timedelta64
10241026
issues). ``idxmin, idxmax`` are supported as well.
10251027

0 commit comments

Comments
 (0)