class_docstr: _Col class. It refers to a column of a dataframe.
class_docstr_tok: ["_Col","class",".","It","refers","to","a","column","of","a","dataframe","."]
docstr: Returns the column defined in attribute 'colname' from the dataframe 'df'.
  
  Args:
      df: The dataframe from which to select the column.
  
  Raises:
      KeyError: If the column is not found in the dataframe.
  
  Returns:
      The column defined in attribute 'colname' from the dataframe 'df'.
docstr_tok: ["Returns","the","column","defined","in","attribute","'colname","'","from","the","dataframe","'df","'",".","Args",":","df",":","The","dataframe","from","which","to","select","the","column",".","Raises",":","KeyError",":","If","the","column","is","not","found","in","the","dataframe",".","Returns",":","The","column","defined","in","attribute","'colname","'","from","the","dataframe","'df","'","."]
code: def get_col(self, df: pd.DataFrame) -> pd.Series:
      """Returns the column defined in attribute 'colname' from the dataframe 'df'.
  
      Args:
          df: The dataframe from which to select the column.
  
      Raises:
          KeyError: If the column is not found in the dataframe.
  
      Returns:
          The column defined in attribute 'colname' from the dataframe 'df'.
      """
      try:
          out = df[self.colname]
      except KeyError:
          raise KeyError(
              "column '{colname}' not found in dataframe".format(
                  colname=self.colname
              )
          )
      else:
          return out.fillna("").apply(str)
  
imports: import warnings
  import numpy
  import pandas
  from typing import Any, Hashable, List, Optional, Tuple, Type, Union
label_desc: Use image node_id 3 for calling the _Col obj's underlying member method code with example usage: obj.get_col(df) and returns: out