def MakePmfFromHist(hist, label=None):
 if (label is None):
  label = hist.label
 return Pmf(hist, label=label)

def MakePmfFromHist ( hist , label = None ) : if ( label is None ) : label = hist . label return Pmf ( hist , label = label )
makes a normalized pmf from a hist object .