code: def __getitem__(self, col):
      # turn labels (strings) into numbered indexing so that self.array columns can
      # be accessed.
      if isinstance(col, (tuple, list)):
          numbered_col = [self.columns.index(i) for i in col]
          return DataFrame(
              self.array[:, numbered_col],
              index=self.index,
              dtype=self.dtype,
              columns=col,
          )
      col = self.columns.index(col)
      return Series(
          self.array[:, col],
          index=self.index,
          dtype=self.dtype,
      )
  
file_path: ivy/ivy/functional/frontends/pandas/dataframe.py
imports: from .generic import NDFrame
  import ivy
  from .series import Series
  from ivy.functional.frontends.pandas.index import Index
label_desc: Use image node_id 2 for calling the DataFrame obj's underlying member method code with example usage: obj.__getitem__(col) and returns: Series, DataFrame