"""First reproducible Positron/Python check for Jennifer's fictional cohort."""

import pandas as pd


cohort = pd.read_csv("gerostats_medication_review_cohort.csv")
counts = cohort["med_review"].value_counts().sort_index()

print("shape:", cohort.shape)
print("medication review counts:")
print(counts.to_string())
print("medication review percentages:")
print((counts / len(cohort) * 100).round(1).to_string())
print("age summary:")
print(cohort["age_years"].agg(["mean", "min", "max"]).round(2).to_string())
