Hard to generalise this, but I have some template functions for combining awkward arrays and `hist` objects. https://github.com/Mu2e/pyutils/blob/main/pyutils/pyprocess.py#L463-L466