parameters: (self, key)
return_statement: return super().__getitem__(key)
docstring: Recursively apply dict.__getitem__ for nested elements.
docstring_summary: Recursively apply dict.__getitem__ for nested elements.
docstring_tokens: Recursively apply dict . __getitem__ for nested elements .
function: def __getitem__(self, key):
          """Recursively apply dict.__getitem__ for nested elements."""
          # As described in the pandas docs
          # https://pandas.pydata.org/pandas-docs/stable/user_guide/advanced.html#advanced-indexing-with-hierarchical-index  # noqa: E501
          # accessing nested elements of a multiindex must be done using a tuple.
          # Lists and other sequences are treated as accessing multiple elements
          # at the top level of the index.
          if isinstance(key, tuple):
              return reduce(dict.__getitem__, key, self)
          return super().__getitem__(key)
function_tokens: def __getitem__ ( self , key ) : # As described in the pandas docs # https://pandas.pydata.org/pandas-docs/stable/user_guide/advanced.html#advanced-indexing-with-hierarchical-index  # noqa: E501 # accessing nested elements of a multiindex must be done using a tuple. # Lists and other sequences are treated as accessing multiple elements # at the top level of the index. if isinstance ( key , tuple ) : return reduce ( dict . __getitem__ , key , self ) return super ( ) . __getitem__ ( key )