 REF: use _get_axis_number instead of if axis in [...]: #43048 
#43112 pull request is not re-opening as the pandas repository was deleted which I forked before so I am creating a new pull request please review it?