Skip to content

Commit

Permalink
Merge pull request #374 from ONSdigital/RDRP-1035
Browse files Browse the repository at this point in the history
RDRP- 1035 Updating code for Python 3.11
  • Loading branch information
Ryan2Y79 authored Nov 8, 2024
2 parents efd2ad6 + 1df7fd4 commit 6bab026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/user_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ hdfs_paths:
civil_defence_detailed_mapper_path: "civil_defence_detailed_2022.csv"
sic_division_detailed_mapper_path: "sic_div_detailed_2022.csv"
2023_mappers:
mappers_version: "v1"
mappers_version: "v2"
postcode_mapper: "postcodes_2023.csv"
itl_mapper_path: "itl_2023.csv"
ultfoc_mapper_path: "BERD_2023_ultfoc_anon.csv"
ultfoc_mapper_path: "BERD_2023_ultfoc.csv"
cellno_path: 'BERD_2023_cellno_coverage.csv'
pg_num_alpha_mapper_path: 'pg_num_alpha_2023.csv'
sic_pg_alpha_mapper_path: 'sic_pg_alpha_2023.csv'
Expand Down
2 changes: 1 addition & 1 deletion src/utils/local_file_mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def rd_read_csv(filepath: str, **kwargs) -> pd.DataFrame:

# Read the scv file using the path and keyword arguments
try:
df = pd.read_csv(file, **kwargs)
df = pd.read_csv(file, **kwargs, low_memory=False)
except Exception:
LocalModLogger.error(f"Could not read specified file: {filepath}")
if kwargs:
Expand Down

0 comments on commit 6bab026

Please sign in to comment.