Use numpy median function.