You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.15.0.rst
+38-13Lines changed: 38 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -161,12 +161,18 @@ Construct a scalar
161
161
162
162
Access fields for a ``Timedelta``
163
163
164
-
.. ipython:: python
164
+
.. code-block:: ipython
165
+
166
+
In [14]: td = pd.Timedelta('1 hour 3m 15.5us')
167
+
168
+
In [15]: td.seconds
169
+
Out[15]: 3780
170
+
171
+
In [16]: td.microseconds
172
+
Out[16]: 15
165
173
166
-
td = pd.Timedelta('1 hour 3min 15.5us')
167
-
td.seconds
168
-
td.microseconds
169
-
td.nanoseconds
174
+
In [17]: td.nanoseconds
175
+
Out[17]: 500
170
176
171
177
Construct a ``TimedeltaIndex``
172
178
@@ -1029,16 +1035,35 @@ Other:
1029
1035
1030
1036
If ``Period`` freq is ``D``, ``H``, ``T``, ``S``, ``L``, ``U``, ``N``, ``Timedelta``-like can be added if the result can have same freq. Otherwise, only the same ``offsets`` can be added.
0 commit comments