From 847926c192d46d267eb44ee7dbb84e59f6a9a752 Mon Sep 17 00:00:00 2001 From: gsganden Date: Mon, 21 Feb 2022 13:53:19 -0600 Subject: [PATCH 1/3] DOC: Remove old note about default unit --- pandas/core/tools/datetimes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 33ed64c7ae364..cdb2ea37d948c 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -765,8 +765,8 @@ def to_datetime( unit : str, default 'ns' The unit of the arg (D,s,ms,us,ns) denote the unit, which is an integer or float number. This will be based off the origin. - Example, with ``unit='ms'`` and ``origin='unix'`` (the default), this - would calculate the number of milliseconds to the unix epoch start. + Example, with ``unit='ms'`` and ``origin='unix'``, this would calculate + the number of milliseconds to the unix epoch start. infer_datetime_format : bool, default False If :const:`True` and no `format` is given, attempt to infer the format of the datetime strings based on the first non-NaN element, From 438bb215966eb5f7a3a3d675e06429d420f466bf Mon Sep 17 00:00:00 2001 From: gsganden Date: Mon, 21 Feb 2022 13:59:45 -0600 Subject: [PATCH 2/3] Update whatsnew --- doc/source/whatsnew/v1.4.2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst index 68999b9bba50f..d786e2a99cf07 100644 --- a/doc/source/whatsnew/v1.4.2.rst +++ b/doc/source/whatsnew/v1.4.2.rst @@ -32,7 +32,7 @@ Bug fixes Other ~~~~~ -- +- Removed docstring comment indicating incorrectly that default unit is 'ms' rather than 'ns' - .. --------------------------------------------------------------------------- From b8a7ace958eb0449099ea2bceb000cd2baa50e9a Mon Sep 17 00:00:00 2001 From: gsganden Date: Mon, 21 Feb 2022 14:00:22 -0600 Subject: [PATCH 3/3] Revert "Update whatsnew" This reverts commit 438bb215966eb5f7a3a3d675e06429d420f466bf. --- doc/source/whatsnew/v1.4.2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst index d786e2a99cf07..68999b9bba50f 100644 --- a/doc/source/whatsnew/v1.4.2.rst +++ b/doc/source/whatsnew/v1.4.2.rst @@ -32,7 +32,7 @@ Bug fixes Other ~~~~~ -- Removed docstring comment indicating incorrectly that default unit is 'ms' rather than 'ns' +- - .. ---------------------------------------------------------------------------