A hack to never get confused.
Imagine a cylindrical object. If you look at it from the top, you see zero. If you look at it from the side, you see a one. Using this analogy, you can remember if an action is being applied vertically (axis=0) or if it is applied horizontally (axis=1).