code: def load_csv(path):
      
  
      with open(path) as f:
          line = f.readline().strip()
  
      X = np.loadtxt(path, delimiter=',',
                     skiprows=0 if is_number(line.split(',')[0]) else 1)
  
      y = np.array(X[:, 0]).flatten()
      X = X[:, 1:]
  
      return X, y
docs: Load data from a CSV file.
  
      Args:
          path (str): A path to the CSV format file containing data.
          dense (boolean): An optional variable indicating if the return matrix
                           should be dense.  By default, it is false.
  
      Returns:
          Data matrix X and target vector y