Skip to content

Commit 2fb649d

Browse files
committed
update docstrings
1 parent 8617a57 commit 2fb649d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ class Timedelta(_Timedelta):
19461946
----------
19471947
value : Timedelta, timedelta, np.timedelta64, str, int or float
19481948
Input value.
1949-
unit : str, default 'ns'
1949+
input_unit : str, default 'ns'
19501950
If input is an integer, denote the unit of the input.
19511951
If input is a float, denote the unit of the integer parts.
19521952
The decimal parts with resolution lower than 1 nanosecond are ignored.

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ class Timestamp(_Timestamp):
18041804
Value of nanosecond.
18051805
tz : str, zoneinfo.ZoneInfo, pytz.timezone, dateutil.tz.tzfile or None
18061806
Time zone for time which Timestamp will have.
1807-
unit : str
1807+
input_unit : str
18081808
Unit used for conversion if ts_input is of type int or float. The
18091809
valid values are 'W', 'D', 'h', 'm', 's', 'ms', 'us', and 'ns'. For
18101810
example, 's' means seconds and 'ms' means milliseconds.

0 commit comments

Comments
 (0)