[Numpy-discussion] Code review for adding axis argument to permutation and shuffle function

Kexuan Sun me at kianasun.com
Thu Jul 4 03:04:49 EDT 2019


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!




More information about the NumPy-Discussion mailing list