We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42adb9f commit f329b24Copy full SHA for f329b24
doc/source/user_guide/timedeltas.rst
@@ -88,13 +88,19 @@ or a list/array of strings:
88
89
pd.to_timedelta(["1 days 06:05:01.00003", "15.5us", "nan"])
90
91
-The ``unit`` keyword argument specifies the unit of the Timedelta:
+The ``unit`` keyword argument specifies the unit of the Timedelta if the input
92
+is numeric:
93
94
.. ipython:: python
95
96
pd.to_timedelta(np.arange(5), unit="s")
97
pd.to_timedelta(np.arange(5), unit="d")
98
99
+.. warning::
100
+ If a string or array of strings is passed as an input then the ``unit`` keyword
101
+ argument will be ignored. If a string without units is passed then the default
102
+ unit of nanoseconds is assumed.
103
+
104
.. _timedeltas.limitations:
105
106
Timedelta limitations
0 commit comments