class_docstr: Constructor for the DataReader class.
  Data Reader class takes in the information given by the user, and appropriately reads the data in. Detects for filetype, and other information passed to it
  :param in_mem_data: data file as a path
  :param dataset_name: name of the dataset
docstr: function to activate the data reading
  :return dataframe that's read into the system as a pandas dataframe object
code: def data_reader(self, error_checking=True):
      """
      function to activate the data reading
      :return dataframe that's read into the system as a pandas dataframe object
      """
      frame = 0
      if "type" not in self.data:
          data_type = self.type_detector(self.dataset_name)
      else:
          data_type = self.data["type"]
  
      dropping = self.elements_to_drop()
  
      if data_type == "csv":
          frame = self.csv(self.dataset_name, drop=dropping)
          if (
              error_checking
              and self.data["data"]["target"] not in frame.columns
          ):
              raise Exception(
                  "The target you provided -- {} -- is not in the dataframe.".format(
                      self.data["target"]
                  )
              )
      if data_type == "xs":
          frame = self.xs(self.dataset_name, drop=dropping)
          if (
              error_checking
              and self.data["target"] not in frame.columns
          ):
              raise Exception(
                  "The target you provided -- {} -- is not in the dataframe.".format(
                      self.data["target"]
                  )
              )
      if "trim" not in self.data:
          pass
      else:
          if self.data["trim"] < 0.1 or self.data["train"] > 0.9:
              raise Exception(
                  "Trimming amounts should be between the value 0.1 and 0.9."
              )
          target_size = int(self.data["trim"] * len(frame))
  
          while target_size > len(frame):
              frame = frame.iloc[1:]
  
      return frame
  
file_path: nylon/nylon/data/reader.py
imports: import pandas
  import warnings
label_desc: Use image node_id 3 for calling the DataReader obj's underlying member method code with example usage: obj.data_reader(error_checking) and returns: frame