parameters: (self)
return_statement: return len(self._levels)
docstring: Integer number of levels in this MultiIndex.
  
          Examples
          --------
          >>> mi = pd.MultiIndex.from_arrays([['a'], ['b'], ['c']])
          >>> mi
          MultiIndex([('a', 'b', 'c')],
                     )
          >>> mi.nlevels
          3
docstring_summary: Integer number of levels in this MultiIndex.
docstring_tokens: Integer number of levels in this MultiIndex .
function: def nlevels(self) -> int:
          """
          Integer number of levels in this MultiIndex.
  
          Examples
          --------
          >>> mi = pd.MultiIndex.from_arrays([['a'], ['b'], ['c']])
          >>> mi
          MultiIndex([('a', 'b', 'c')],
                     )
          >>> mi.nlevels
          3
          """
          return len(self._levels)
function_tokens: def nlevels ( self ) -> int : return len ( self . _levels )