Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Fix age bins in emergency_care_features.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vvcb authored Mar 22, 2023
1 parent d81a255 commit 078c6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avoidable_admissions/features/emergency_care_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _age(df: pd.DataFrame) -> pd.DataFrame:

age_labels = feature_maps.age_labels
age_bins = feature_maps.age_bins
df["activage_cat"] = pd.cut(df.activage, bins=age_bins, labels=age_labels)
df["activage_cat"] = pd.cut(df.activage, bins=age_bins, labels=age_labels, right=False)
df["activage_cat"] = df["activage_cat"].astype(str)

return df
Expand Down

0 comments on commit 078c6bd

Please sign in to comment.