summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorAlex <aprockhill206@gmail.com>2020-07-22 11:58:13 -0700
committerAlex <aprockhill206@gmail.com>2020-07-22 11:59:31 -0700
commit325fbe4c90b0f499ccbd7750bd628dc8cebbcfbc (patch)
tree3d6817b928b2a1e543ee37644ea6ba3d4d5bfe13 /doc/release
parentd215c1f16c74a756c1b374a96a1abd0cac11b5d3 (diff)
downloadnumpy-325fbe4c90b0f499ccbd7750bd628dc8cebbcfbc.tar.gz
added release note
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/upcoming_changes/16248.new_feature.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/16248.new_feature.rst b/doc/release/upcoming_changes/16248.new_feature.rst
new file mode 100644
index 000000000..823646d00
--- /dev/null
+++ b/doc/release/upcoming_changes/16248.new_feature.rst
@@ -0,0 +1,13 @@
+Digitize Keyword Egde
+---------------------
+A keyword argument has been added to `np.digitize` so that the
+edge case is covered in the last bin. For example,
+
+```
+x = [1, 2, 3]
+bins = [0, 1.5, 3]
+```
+
+`np.digitize(x, bins, right=False, edge=True)` yields `[1, 2, 2]`
+whereas before the edge keyword argument existed it would yield
+`[1, 2, 3]`. \ No newline at end of file