Thank you very much smoore2! Your answer makes sense. However, I am looking for a way to automate it. Since my tree will probably have 20 features 2.5 million rows of observations and fine tuning this tree will be very interactive process. So after each change of tree parameters, I will need to construct manual filters. It would be so much easier to see final leaf for each observation right away.