[Numpy-discussion] ENH: Proposal to add shift functionality to array (follow up)

2022-09-27 Thread Filippo Tagliacarne
Hello everyone, I hope this is the correct place to post this as this is my first (potential) contribution to numpy. I would like to implement a function numpy.shift which would work similarly to numpy.roll, with one key difference. After shifting an array by a value `shift`, the function fill

[Numpy-discussion] ENH: Proposal to add shift functionality to array

2022-09-07 Thread Filippo Tagliacarne
Hi, I hope this is the correct place to post this as this is my first (potential) contribution to numpy. I would like to implement a function numpy.shift which would work similarly to numpy.roll, with one key difference. After shifting an array by a value `shift`, the function fills the missi