从这张图可以看出,
pandas和numpy对于axis参数的使用是一致的,从numpy官方术语表对于axis的释义可知一二。
Axes are defined for arrays with more than one dimension. A 2-dimensional array has two corresponding axes: the first running vertically downwards across rows (axis 0), and the second running horizontally across columns (axis 1).
原文:https://www.cnblogs.com/yangzhen-ahujhc/p/12381712.html