[Numpy-discussion] Possible Deprecation of np.ediff1d (original) (raw)
Robert Kern robert.kern at gmail.com
Mon Aug 27 13:36:58 EDT 2018
- Previous message (by thread): [Numpy-discussion] Possible Deprecation of np.ediff1d
- Next message (by thread): [Numpy-discussion] Possible Deprecation of np.ediff1d
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Aug 27, 2018 at 10:30 AM Tyler Reddy <tyler.je.reddy at gmail.com> wrote:
Chuck suggested ( https://github.com/numpy/numpy/pull/11805#issuecomment-416069436 ) that we may want to consider deprecating np.ediff1d, which is perhaps not much more useful than np.diff, apart from having some arguably strange prepend / append behavior added in.
Related discussion on SO: https://stackoverflow.com/questions/39014324/difference-between-numpy-ediff1d-and-diff Thoughts?
Huh. Never knew this existed. I'd say about 50% of the time I use np.diff(), I'm doing that prepend/append behavior manually (and less readably, possibly inefficiently, but most importantly annoyingly).
-- Robert Kern -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180827/d2f50729/attachment.html>
- Previous message (by thread): [Numpy-discussion] Possible Deprecation of np.ediff1d
- Next message (by thread): [Numpy-discussion] Possible Deprecation of np.ediff1d
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]