parameters: (self)
return_statement: return len(self._levels)
docstring: Integer number of levels in this MultiIndex.
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.
          """
          return len(self._levels)
function_tokens: def nlevels ( self ) -> int : return len ( self . _levels )