subquery support
fixing for newer version of pandas