summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-11-25 15:08:28 -0800
committerGitHub <noreply@github.com>2019-11-25 15:08:28 -0800
commitd051ab51cb552e26a11554e406c092de766f239e (patch)
tree2558d0eff5f46bacec92cf3f754450db664e1fbf /numpy/core/fromnumeric.py
parent4de39979cbe26741c01bded893ce0269116c7153 (diff)
parentfc99245b05163dd4f723c886c04174e98650c11b (diff)
downloadnumpy-d051ab51cb552e26a11554e406c092de766f239e.tar.gz
Merge pull request #12658 from tylerjereddy/NaT_sort_order
BUG: NaT now sorts to ends of arrays
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 6e5f3dabf..d454480a8 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -944,6 +944,10 @@ def sort(a, axis=-1, kind=None, order=None):
'mergesort' and 'stable' are mapped to radix sort for integer data types. Radix sort is an
O(n) sort instead of O(n log n).
+ .. versionchanged:: 1.17.0
+
+ NaT now sorts to the end of arrays for consistency with NaN.
+
Examples
--------
>>> a = np.array([[1,4],[3,1]])