For compute this, we can do 2019 example:
tb_census_df["recompute incidence 2019"] = tb_census_df["TB cases 2019"]/tb_census_df["2019"]*100000
tb_census_df.head(5)
# recompute incidence for all years
for year in [2019, 2020, 2021]:
tb_census_df[f"recompute incidence {year}"] = tb_census_df[f"TB cases {year}"]/tb_census_df[f"{year}"]*100000
tb_census_df.head(5)
# useful to explore the hundredths place bits in 2021
tb_census_df.describe()
'Computer Science 🌋 > Machine Learning🐼' 카테고리의 다른 글
Regex (0) | 2023.05.24 |
---|---|
Python String Method (0) | 2023.05.24 |
Gather more data & join data on primary keys (0) | 2023.05.24 |
Record Granularity (0) | 2023.05.24 |
CSV files and field names (0) | 2023.05.24 |