How to get NbinsX with pyroot?

Hi,
I found that ‘z_pt’ can’t be retrieved from ‘data.root’, because there is some problem with the root file.
Thanks for your solution.
And thanks for all of you!
Cheers