input: from typing import List
  
  def process_csv(filename: str) -> List[str]:
      """Parses a CSV and generates a new CSV that adds the total number of rows, 
      total number of columns, and total amount of data for each attribute.
      Example:
      for process_csv('test.csv') == ['4', '5', '324.5,6;12.3,2;98.7,5;0.6,3;14.8,1']
      """
output:     with open(filename, 'r') as file:
          lines = file.readlines()
      
      num_rows = len(lines)
      num_columns = len(lines[0].strip().split(','))
      
      total_data = []
      for line in lines:
          values = line.strip().split(',')
          for i, value in enumerate(values):
              if i >= len(total_data):
                  total_data.append([float(value), 1])
              else:
                  total_data[i][0] += float(value)
                  total_data[i][1] += 1
      
      total_data_str = ';'.join([f"{data[0]},{data[1]}" for data in total_data])
      
      return [str(num_rows), str(num_columns), total_data_str]