def primary_child_parent_m2m(data):
    """
    Return a m2m table with (child_id, parent_id) pairs.
    """
    return (
        data.mundi["parent_id"].dropna().reset_index().rename({"id": "child_id"}, axis=1)
    )