diff options
-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 |