@property
def ndim(self) -> int:
    "\n        Return an int representing the number of array dimensions.\n\n        return 2 for DataFrame.\n\n        Examples\n        --------\n\n        >>> df = ps.DataFrame([[1, 2], [4, 5], [7, 8]],\n        ...                   index=['cobra', 'viper', None],\n        ...                   columns=['max_speed', 'shield'])\n        >>> df\n               max_speed  shield\n        cobra          1       2\n        viper          4       5\n        NaN            7       8\n        >>> df.ndim\n        2\n        "
    return 2
Return an int representing the number of array dimensions.

return 2 for DataFrame.

Examples
--------

>>> df = ps.DataFrame([[1, 2], [4, 5], [7, 8]],
...                   index=['cobra', 'viper', None],
...                   columns=['max_speed', 'shield'])
>>> df
       max_speed  shield
cobra          1       2
viper          4       5
NaN            7       8
>>> df.ndim
2
@property
def ndim(self) -> int:
    "\n        Return an int representing the number of array dimensions.\n\n        return 2 for DataFrame.\n\n        Examples\n        --------\n\n        >>> df = ps.DataFrame([[1, 2], [4, 5], [7, 8]],\n        ...                   index=['cobra', 'viper', None],\n        ...                   columns=['max_speed', 'shield'])\n        >>> df\n               max_speed  shield\n        cobra          1       2\n        viper          4       5\n        NaN            7       8\n        >>> df.ndim\n        2\n        "
    return 2