@M456's idea is clever, but if you have the same naming scheme for several arrays, I think the simpler solution would be just to use a dictionary:
axes = { 'DA': 0, 'DB':1 }
a.sum(axes['DA'])
or even just variables:
DA, DB, DC = range(3)
a.sum(DA)
If it should be your last (or penultimate, etc) axis, just use -1
(or -2
, etc.):
a.shape
#(2,3,4)
np.all(a.sum(2) == a.sum(-1))
#True
np.all(a.sum(0) == a.sum(-3))
#True