From 85a66298de5d25362cb5d3669306a74a76ff6a32 Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Mon, 21 Oct 2019 12:15:27 +0100 Subject: [PATCH] CLN: remove versionadded:: 0.19.0 and earlier --- pandas/_libs/tslibs/timestamps.pyx | 3 --- pandas/core/frame.py | 2 -- pandas/core/tools/datetimes.py | 3 --- pandas/tseries/offsets.py | 2 -- 4 files changed, 10 deletions(-) diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index c1575ce4f48b3..50a71d062c63f 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -194,13 +194,10 @@ class Timestamp(_Timestamp): valid values are 'D', 'h', 'm', 's', 'ms', 'us', and 'ns'. For example, 's' means seconds and 'ms' means milliseconds. year, month, day : int - .. versionadded:: 0.19.0 hour, minute, second, microsecond : int, optional, default 0 - .. versionadded:: 0.19.0 nanosecond : int, optional, default 0 .. versionadded:: 0.23.0 tzinfo : datetime.tzinfo, optional, default None - .. versionadded:: 0.19.0 Notes ----- diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c90bf4ba7151f..7f36826a893dd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6446,8 +6446,6 @@ def diff(self, periods=1, axis=0): axis : {0 or 'index', 1 or 'columns'}, default 0 Take difference over rows (0) or columns (1). - .. versionadded:: 0.16.1. - Returns ------- DataFrame diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 7b136fa29ecea..ea7a09881ef87 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -601,9 +601,6 @@ def to_datetime( Warning: yearfirst=True is not strict, but will prefer to parse with year first (this is a known bug, based on dateutil behavior). - - .. versionadded:: 0.16.1 - utc : bool, default None Return UTC DatetimeIndex if True (converting any tz-aware datetime.datetime objects as well). diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index c0f6777fdb62b..1e3f5c1ed870e 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -980,8 +980,6 @@ def _repr_attrs(self): class BusinessHour(BusinessHourMixin, SingleConstructorOffset): """ DateOffset subclass representing possibly n business hours. - - .. versionadded:: 0.16.1 """ _prefix = "BH"