public CSVNormaliser fillBlanks(){
		if(csvList.isEmpty()){
			System.err.println("Tried to fill blanks on empty dataset.");
			return this;
		}
		
		int numAttributes = csvList.get(0).length;
		
		for(int attribute = 0; attribute < numAttributes; ++attribute){
			if(attribute == classificationIndex){
				continue; // Skip the classification index. It's just strings anyway.
			}
			double sum = 0.0;
			int num = 0;
			for(String[] row : csvList){				
				if(row[attribute].length() != 0){
					sum += Double.parseDouble(row[attribute]);
					++num;
				}
			}
			double average = sum/num;

			for(String[] row : csvList){
				if(row[attribute].length() == 0){
					row[attribute] = String.valueOf(average);				
				}
			}
		}
		return this;
	}