Skip to content

Conversation

@girum-air
Copy link
Contributor

…ed see HEA-780

@girum-air girum-air requested a review from rhunwicks October 17, 2025 13:08
@girum-air girum-air self-assigned this Oct 17, 2025
summary_df = pd.DataFrame(reported_summary_output.value["LivelihoodActivity"])
for col in ["income", "expenditure", "kcals_consumed"]:
summary_df[col] = pd.to_numeric(summary_df[col], errors="coerce")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@girum-air Do we need to add .fillna(0) so that groupby().sum() below doesn't return nan?

Ensure numeric conversion fills NaN values with 0.
@rhunwicks rhunwicks merged commit 58368ee into main Oct 17, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants