Skip to content

Fix check for normalized against#33

Merged
acollins3 merged 1 commit intomainfrom
acollins/fix-normalized-against
Mar 12, 2026
Merged

Fix check for normalized against#33
acollins3 merged 1 commit intomainfrom
acollins/fix-normalized-against

Conversation

@acollins3
Copy link
Collaborator

@acollins3 acollins3 commented Mar 10, 2026

Fix case when normalized_against is an np.bool(False), where the current check erroneously adds the "relative to ..." string to the label.

Bug introduced here: 005a2f5

pandas dataframes implicitly convert False to np.bool(False) when assigning built-in boolean types to the column of a dataframe. So this: agg_df["Normalized"] = False is really doing this: agg_df["Normalized"] = np.bool(False)

@acollins3 acollins3 merged commit b1dc827 into main Mar 12, 2026
3 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.

2 participants