"""
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"]
data = data[data["population"] > 50].copy()
https://github.com/fitzgeraldja/stc_unicef_cpi/blob/612875df38037f4cf64e607d840c2a69efe4df23/reports/prep_data_mapbox.py#L29