Skip to content

Commit d06e691

Browse files
Natasha ChetwyndNatasha Chetwynd
authored andcommitted
fixed issue on line 79 with \
1 parent cb19449 commit d06e691

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

codonPython/checknatval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def check_nat_val(df: pd.DataFrame, breakdown_col: str = "Breakdown",
7575
value_col not in df.columns:
7676
raise KeyError("Check column names correspond to the DataFrame.")
7777
# aggregate values by measure and breakdown
78-
grouped = df.groupby([measure_col, breakdown_col]).agg({value_col: sum})
79-
.reset_index()
78+
grouped = df.groupby([measure_col, breakdown_col]).agg({value_col: sum})\
79+
.reset_index()
8080
national = grouped.loc[grouped[breakdown_col] == nat_val].reset_index()
8181
non_national = grouped.loc[grouped[breakdown_col] != nat_val].reset_index()
8282
# check values are less than or equal to national value for each measure

0 commit comments

Comments
 (0)