Here's what I think axis is and want to know if my understanding is correct
We count opening bracket [
from left indexed from 0
and that's the axis
eg1) [[1,2],[3,4]]
for [
find all elements that has one [
left to it, are the elements for the axis 0. ([[
for axis 1 and so on)
0 axis: you see `[`: [x, y] where x = [1,2], y=[3,4]
1 axis: you see `[[`: [[x, y]] where x = [1,3], y = [2,4]
eg2) [[[1,2,3], [4,5,6]], [[7,8,9], [10,11,12]]]
0 axis: you see `[` [x, y] where x = [[1,2,3], [4,5,6]], y= [[7,8,9], [10,11,12]]
1 axis: you see `[[`, x = [1,2,3], [7,8,9] y = [4,5,6], [10,11,12]
2 axis: you see `[[[`, x = [1,4,7,10] y = [2,5,8,11] z = [3,6,9,12]
If there's a function that takes a value along the axis, I could verify if I'm right, but..
closest thing I found was np.take