DOC: Timedelta constructor requires value
or keyword args - not specified in the docs
#45258
Closed
1 task done
Pandas version checks
master
hereLocation of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timedelta.html
Documentation problem
The
Timedelta
constructor requires specifying eithervalue
or keyword arguments, but the docs seem to imply thatvalue
andunit
are required. The following shows two equivalent calls for a one day increment:Suggested fix for documentation
The docs should indicate that you specify either
value
andunit
ORkwargs
, and at leastvalue
orkwargs
must be specified.The text was updated successfully, but these errors were encountered: