class_docstr: Initialize a Dataset from a CSV file/dataframe. This does NOT
  actually load the data into memory if the ``csv`` parameter contains filepaths.
  
  :param csv: (string or pandas.DataFrame):
      if string, should be a path to a .csv file which
      can be loaded as a pandas dataframe
  
  :param input_cols: (list of ints, or list of strings):
      which column(s) to use as input arrays.
      If int(s), should be column indicies.
      If str(s), should be column names
  
  :param target_cols: (list of ints, or list of strings):
      which column(s) to use as input arrays.
      If int(s), should be column indicies.
      If str(s), should be column names
  
  :param input_transform: (transform):
      tranform to apply to inputs during runtime loading
  
  :param target_tranform: (transform):
      transform to apply to targets during runtime loading
  
  :param co_transform: (transform):
      transform to apply to both inputs and targets simultaneously
      during runtime loading
  
  :param apply_transforms_individually: (bool):
      Whether to apply transforms to individual inputs or to an input row as a whole (default: False)
docstr: Creates a copy of itself (including transforms and other params).
  
  :param df: dataframe to include in the copy. If not specified, uses the
      internal dataframe inside this instance (if any)
  
  :return:
docstr_tok: ["Creates","a","copy","of","itself","(","including","transforms","and","other","params",")",".",":","param","df",":","dataframe","to","include","in","the","copy",".","If","not","specified",",","uses","the","internal","dataframe","inside","this","instance","(","if","any",")",":","return",":"]
code: def copy(self, df=None):
      """
      Creates a copy of itself (including transforms and other params).
  
      :param df: dataframe to include in the copy. If not specified, uses the
          internal dataframe inside this instance (if any)
  
      :return:
      """
      if df is None:
          df = self.df
  
      return CSVDataset(
          df,
          input_cols=self.input_cols,
          target_cols=self.target_cols,
          input_transform=self.input_transform,
          target_transform=self.target_transform,
          co_transform=self.co_transform,
      )
  
file_path: pywick/pywick/datasets/CSVDataset.py
imports: from .BaseDataset import BaseDataset
  import numpy
  import pandas
  from .data_utils import _return_first_element_of_list, default_file_reader, _pass_through, _process_transform_argument, _process_co_transform_argument
label_desc: Use image node_id 5 for calling the CSVDataset obj's underlying member method code with example usage: obj.copy(df) and returns: CSVDataset