import csv


def csv_to_list(csv_path):
  """This function parses the given csv file and returns the list of Bhav objects(each line of csv)"""
  csv_data = []
  with open(csv_path, mode='r') as csv_file:
    csv_reader = csv.DictReader(csv_file)
    line_count = 0
    for row in csv_reader:
      data = {
          'SC_CODE': row["SC_CODE"],
          'SC_NAME': row["SC_NAME"],
          'OPEN': row["OPEN"],
          'LOW': row["LOW"],
          'CLOSE': row["CLOSE"],
      }
      csv_data.append(data)
      line_count += 1

    print(f'Processed {line_count} lines.')

  return csv_data