bhf_smarthealth.enrich.lsoa_ahah_enrich

bhf_smarthealth.enrich.lsoa_ahah_enrich#

This module enriches LSOA data with AHAH environmental data

Attributes#

Functions#

enrich_LSOA_out(→ None)

Enrich derived LSOA data with AHAH data

Module Contents#

bhf_smarthealth.enrich.lsoa_ahah_enrich.logger#
bhf_smarthealth.enrich.lsoa_ahah_enrich.enrich_LSOA_out(lsoa_data: pandas.DataFrame, ahah_data: pandas.DataFrame, out_path: pathlib.Path | str) → None[source]#

Enrich derived LSOA data with AHAH data

Parameters:
  • lsoa_data (pd.DataFrame) – DataFrame containing the intraday LSOA data to be processed

  • ahah_data (pd.DataFrame) – DataFrame containing reference AHAH (Access to Health Assets and Hazards) data

  • out_path (Path | str) – Path to write output file to. File format will be determined from filename extension

Raises:
  • TypeError – Raised if reference AHAH data is not a DataFrame

  • TypeError – Raised if LSOA data is not a DataFrame