np.roll produces unexpected behavior when shift is a tuple but axis is not · Issue #14277 · numpy/numpy · GitHub
![Mario Klingemann 🇺🇦 on Twitter: "@iandanforth Numpy.roll() - shifting an array with wrapping around." / Twitter Mario Klingemann 🇺🇦 on Twitter: "@iandanforth Numpy.roll() - shifting an array with wrapping around." / Twitter](https://pbs.twimg.com/media/DaA7IiPXUAAp2yP.jpg)
Mario Klingemann 🇺🇦 on Twitter: "@iandanforth Numpy.roll() - shifting an array with wrapping around." / Twitter
![Despite having used Python for years, today was the first time I've used numpy. Guys, I think numpy might be dark magic. : r/adventofcode Despite having used Python for years, today was the first time I've used numpy. Guys, I think numpy might be dark magic. : r/adventofcode](https://preview.redd.it/7ygrszcj7j481.png?width=640&crop=smart&auto=webp&s=51288acb9275eb0e0e83c18f64a30edd0e3db714)
Despite having used Python for years, today was the first time I've used numpy. Guys, I think numpy might be dark magic. : r/adventofcode
![python - np.roll vs scipy.interpolation.shift--discrepancy for integer shift values - Stack Overflow python - np.roll vs scipy.interpolation.shift--discrepancy for integer shift values - Stack Overflow](https://i.stack.imgur.com/mnEtv.png)