ENH: support inf and Inf in query and eval