Machine learning dataframe dimension concept vs NumPy dimension
The dataframe case refers to the linear algebraic notion of a dimension.  In the NumPy context, it just means the number of axes or rank.