From 2c7500de1c5c3b36f652e0d4d8c93b218e355155 Mon Sep 17 00:00:00 2001 From: Sudhisha K Date: Mon, 30 Dec 2024 11:58:58 +0000 Subject: [PATCH] EuroStatHealth_AlcoholConsumption_Modifications --- scripts/eurostat/health_determinants/common/euro_stat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/eurostat/health_determinants/common/euro_stat.py b/scripts/eurostat/health_determinants/common/euro_stat.py index 3e318c7cc..645f44ff9 100644 --- a/scripts/eurostat/health_determinants/common/euro_stat.py +++ b/scripts/eurostat/health_determinants/common/euro_stat.py @@ -183,7 +183,7 @@ def _parse_file(self, file_name: str, df: pd.DataFrame, df = df[df['geo'] != 'EU28'] return df - def generate_csv(self, importname = None) -> pd.DataFrame: + def generate_csv(self, importname=None) -> pd.DataFrame: """ This Method calls the required methods to generate cleaned CSV, MCF, and TMCF file. @@ -358,7 +358,7 @@ def generate_mcf(self, df: pd.DataFrame = None) -> None: logging.fatal( f'Error encountered while generating output mcf file: {e}') - def generate_tmcf(self, importname = None) -> None: + def generate_tmcf(self, importname=None) -> None: """ This method generates TMCF file w.r.t dataframe headers and defined TMCF template. @@ -374,7 +374,7 @@ def generate_tmcf(self, importname = None) -> None: self._import_name = importname else: self._import_name = self._import_name - + tmcf = _TMCF_TEMPLATE.format(import_name=self._import_name) # Writing Genereated TMCF to local path. with open(self._tmcf_file_path, 'w+', encoding='utf-8') as f_out: