def count_introgressed_positions(df, zscore_boolean_df):
    """Iterate through sample windowed SNP count df and introgression boolean
    df and tally the number of SNP's in windows with a zscore above the given
    threshold."""
    total_per_base = 0
    total_per_window = 0
    for col in df.columns.to_list():
        for v1, v2 in zip(df[col], zscore_boolean_df[col]):
            if v2:
                total_per_window += 1
                total_per_base += int(v1)
                continue
            else:
                continue
    return total_per_base, total_per_window