pandas.DataFrame.ndim

DataFrame.ndim

Number of axes / array dimensions