def detection_frequencies(segregation_table):
    """
    Calculate the detection frequency of each window in a segregation table
    across NPs. Detection frequency is the number of NPs a window was detected
    in divided by the total number of NPs.

    :param segregation_table: Input segregation table.
    :type segregation_table: :ref:`segregation table <segregation_table>`
    :returns: Pandas Series object containin detection frequency of each window
    """
    return segregation_table.sum(axis=1).astype(float
        ) / segregation_table.count(axis=1).astype(float)
