EL-BID/urbanpy

FutureWarning change `geom.gen_hexagons` argument `index_parts`

Claudio9701 opened this issue · 0 comments

This function :

peru_hexs = up.geom.gen_hexagons(4, peru_limit_clean)

Generates this warning:

/Users/claudio/.pyenv/versions/peru-connect-env/lib/python3.9/site-packages/urbanpy/geom/geom.py:168: FutureWarning: Currently, index_parts defaults to True, but in the future, it will default to False to be consistent with Pandas. Use `index_parts=True` to keep the current behavior and True/False to silence the warning.
  city_poly = city.explode().reset_index(drop=True)

Solution:
Define if True or False is adequate for this operation.