Skip to content

Transition model: households can end up with zero records in the persons table #233

@hanase

Description

@hanase

table = table.loc[~table[col_name].isin(set(removed))]

If households are contained in both objects, "added" and "removed", the fact that we first remove households before creating new persons causes those households to end up with no records in the object "new_rows" below and therefore no records in the updated persons table.

Here is our fix which separates the removal of rows (table_new) and the creation of new persons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions