Skip to content

Commit 1c7a970

Browse files
Merge pull request #3 from ONSBigData/mitches-got-glitches-patch-1
Fix bug in get_annual_max_count() in imputation.py
2 parents a99b6eb + 3885c11 commit 1c7a970

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

precon/imputation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ def get_annual_max_count(
184184
) -> int:
185185
"""Counts values present in each year for df, returns max."""
186186
# TODO: Change this to work with user defined freq
187-
return df.any(axis).groupby(lambda x: x.year).sum()
187+
return int(df.any(axis).groupby(lambda x: x.year).sum().max())

0 commit comments

Comments
 (0)