Pandas version checks

  • [x] I have checked that this issue has not already been reported.

  • [x] I have confirmed this bug exists on the latest version of pandas.

  • [x] I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

import pandas as pd
df = pd.DataFrame({'a': [1.0, pd.NA, 3.0], 'b': [4.0, 5.0, pd.NA]}, dtype='Float64')
df.mean(axis=0, skipna=False) # works
df.mean(axis=1, skipna=False) # fails

Issue Description

the treatment of type pd.NA is inconsistent across rows versus down columns.

Expected Behavior

the mean across rows should resolve to type pd.NA when at least one of the values in any column is of type pd.NA

Installed Versions

pandas : 1.5.3 numpy : 1.24.4