We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a99b6eb + 3885c11 commit 1c7a970Copy full SHA for 1c7a970
1 file changed
precon/imputation.py
@@ -184,4 +184,4 @@ def get_annual_max_count(
184
) -> int:
185
"""Counts values present in each year for df, returns max."""
186
# TODO: Change this to work with user defined freq
187
- return df.any(axis).groupby(lambda x: x.year).sum()
+ return int(df.any(axis).groupby(lambda x: x.year).sum().max())
0 commit comments