Helper function to calculate the modal value of a single column, returns the first instance encountered of mode value