Skip to content

Commit

Permalink
Undo changes to NI to UK converting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jday7879 committed Oct 30, 2024
1 parent e8ad189 commit db17f07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 6 additions & 0 deletions mbs_results/estimation/pre_processing_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ def derive_estimation_variables(
population frame containing sampled column
"""
population_frame[cell_number] = (
population_frame[cell_number]
.astype(str)
.map(lambda x: str(5) + x[1:] if x[0] == str(7) else x)
.astype(int)
)

population_frame = population_frame.merge(
calibration_group_map, on=[cell_number], how="left"
Expand Down
11 changes: 0 additions & 11 deletions mbs_results/staging/convert_ni_uk.py

This file was deleted.

1 change: 0 additions & 1 deletion mbs_results/staging/stage_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pandas as pd

# from mbs_results.staging.convert_ni_uk import convert_ni_uk
from mbs_results.staging.create_missing_questions import create_missing_questions
from mbs_results.staging.data_cleaning import enforce_datatypes # run_live_or_frozen
from mbs_results.staging.dfs_from_spp import dfs_from_spp
Expand Down

0 comments on commit db17f07

Please sign in to comment.