pandas.DataFrame.ndim

Return an int representing the number of axes / array dimensions.

Return 1 if Series. Otherwise return 2 if DataFrame.

Warning

This feature is currently unsupported by Intel Scalable Dataframe Compiler