fitzgeraldja / stc_unicef_cpi

MIT License
0 stars 0 forks source link

check that population is not scaled #52

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

data = data[data["population"] > 50].copy()

https://github.com/fitzgeraldja/stc_unicef_cpi/blob/612875df38037f4cf64e607d840c2a69efe4df23/reports/prep_data_mapbox.py#L29


    """
    data: data with hex_code columns and dimensions to plot
    """

    # remove hex_code where pop is less than 50
    # TODO: check that population is not scaled
    # data = data[data["population"] > 50].copy()

    # Add geometry of the polygon
    data["geometry_latlon"] = [
        Polygon(h3.h3_to_geo_boundary(x, geo_json=False)) for x in data["hex_code"]
github-actions[bot] commented 2 years ago

Closed in f4fd23a3b94e5d4f5810d104c7e1943b2c3dd896