def get_probs(x):
    """
    calculate sample probability of each distinct value
    in a discrete array/series.

    Parameters
    ----------
    x: pandas series or numpy array containing value counts

    Returns
    -------
    sample probability of each value
    """
    return x / x.sum()
