use null to represent 'no pH value', delete occurrences of NaN