From e2e84edec006b19825260bf32e963004cd0d3d5c Mon Sep 17 00:00:00 2001 From: Antonioarf Date: Fri, 24 Nov 2023 12:31:23 -0300 Subject: [PATCH 1/3] to_datetime origin argument fix --- pandas/core/tools/datetimes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 076b506670d40..703c16ed5ac03 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -843,8 +843,7 @@ def to_datetime( to the day starting at noon on January 1, 4713 BC. - If Timestamp convertible (Timestamp, dt.datetime, np.datetimt64 or date string), origin is set to Timestamp identified by origin. - - If a float or integer, origin is the millisecond difference - relative to 1970-01-01. + - If a float or integer, is the difference (in units determined by the ``unit`` argument) relative to 1970-01-01. cache : bool, default True If :const:`True`, use a cache of unique, converted dates to apply the datetime conversion. May produce significant speed-up when parsing From 6b13694915530d9ebb1440dcb61d3131b9c174a1 Mon Sep 17 00:00:00 2001 From: Antonioarf Date: Fri, 24 Nov 2023 13:30:35 -0300 Subject: [PATCH 2/3] fix line to long problem --- pandas/core/tools/datetimes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 703c16ed5ac03..65acf0b063444 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -843,7 +843,8 @@ def to_datetime( to the day starting at noon on January 1, 4713 BC. - If Timestamp convertible (Timestamp, dt.datetime, np.datetimt64 or date string), origin is set to Timestamp identified by origin. - - If a float or integer, is the difference (in units determined by the ``unit`` argument) relative to 1970-01-01. + - If a float or integer, is the difference + (in units determined by the ``unit`` argument) relative to 1970-01-01. cache : bool, default True If :const:`True`, use a cache of unique, converted dates to apply the datetime conversion. May produce significant speed-up when parsing From e0694cc2d224ec1401025d795b98ec78841ccca0 Mon Sep 17 00:00:00 2001 From: Antonioarf Date: Fri, 24 Nov 2023 14:15:07 -0300 Subject: [PATCH 3/3] fix formating --- pandas/core/tools/datetimes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 65acf0b063444..e42e89b76e6f2 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -843,7 +843,7 @@ def to_datetime( to the day starting at noon on January 1, 4713 BC. - If Timestamp convertible (Timestamp, dt.datetime, np.datetimt64 or date string), origin is set to Timestamp identified by origin. - - If a float or integer, is the difference + - If a float or integer, origin is the difference (in units determined by the ``unit`` argument) relative to 1970-01-01. cache : bool, default True If :const:`True`, use a cache of unique, converted dates to apply the