Skip to content

Commit 9888489

Browse files
committed
update docstrings
1 parent 2fb649d commit 9888489

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/tools/datetimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def to_datetime(
772772
string.
773773
774774
Cannot be used alongside ``format='ISO8601'`` or ``format='mixed'``.
775-
unit : str, default 'ns'
775+
input_unit : str, default 'ns'
776776
The unit of the arg (D,s,ms,us,ns) denote the unit, which is an
777777
integer or float number. This will be based off the origin.
778778
Example, with ``unit='ms'`` and ``origin='unix'``, this would calculate

pandas/core/tools/timedeltas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def to_timedelta(
117117
Strings with units 'M', 'Y' and 'y' do not represent
118118
unambiguous timedelta values and will raise an exception.
119119
120-
unit : str, optional
120+
input_unit : str, optional
121121
Denotes the unit of the arg for numeric `arg`. Defaults to ``"ns"``.
122122
123123
Possible values:

0 commit comments

Comments
 (0)