Code review for adding axis argument to permutation and shuffle function

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Code review for adding axis argument to permutation and shuffle function

Kexuan Sun
Hi,

I would like to request a code review. The random.permutation and
random.shuffle functions now can only shuffle along the first axis of a
multi-dimensional array. I propose to add an axis argument for the
functions and allow them to shuffle along a given axis. Here is the link
to the PR (https://github.com/numpy/numpy/pull/13829).

Thanks!


_______________________________________________
NumPy-Discussion mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/numpy-discussion