added tree to pandas method