diff options
author | Mark Wiebe <mwiebe@enthought.com> | 2011-07-19 15:38:56 -0500 |
---|---|---|
committer | Mark Wiebe <mwiebe@enthought.com> | 2011-07-19 15:38:56 -0500 |
commit | 7e1c4b0f3fb1778ee77c92cacea1a8609f3cacf8 (patch) | |
tree | f4e59ac13eb8589a671334ecd3cf5d5c7623cfa4 | |
parent | bd77886d6ebab0939e1515b899fa0e0a174268b6 (diff) | |
download | numpy-7e1c4b0f3fb1778ee77c92cacea1a8609f3cacf8.tar.gz |
DOC: datetime: Update the docs to reflect busday_count change
-rw-r--r-- | doc/source/reference/arrays.datetime.rst | 3 | ||||
-rw-r--r-- | numpy/add_newdocs.py | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/doc/source/reference/arrays.datetime.rst b/doc/source/reference/arrays.datetime.rst index 541f97884..d0f037bcb 100644 --- a/doc/source/reference/arrays.datetime.rst +++ b/doc/source/reference/arrays.datetime.rst @@ -317,8 +317,7 @@ dates, use :func:`busday_count`: >>> np.busday_count(np.datetime64('2011-07-11'), np.datetime64('2011-07-18')) 5 >>> np.busday_count(np.datetime64('2011-07-18'), np.datetime64('2011-07-11')) - 0 - # note: In future this will likely return -5, not 0 + -5 If you have an array of datetime64 day values, and you want a count of how many of them are valid dates, you can do this: diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 64f2f436a..334bd8c4b 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -6208,9 +6208,7 @@ add_newdoc('numpy.core.multiarray', 'busday_count', `enddates`, not including the day of `enddates`. If ``enddates`` specifies a date value that is earlier than the - corresponding ``begindates`` date value, the count will be 0. - However, in future this may change to a negative count of valid - days. + corresponding ``begindates`` date value, the count will be negative. .. versionadded:: 1.7.0 |