Skip to content

Commit

Permalink
EuroStatHealth_AlcoholConsumption_Modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
SudhishaK committed Dec 30, 2024
1 parent f51fa0b commit 2c7500d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/eurostat/health_determinants/common/euro_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit 2c7500d

Please sign in to comment.