You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It runs pd.concat for each polygon in source_unary. It should probably run pd.concat only once and outside the for loop like
output = []
for geom in source_unary.geoms:
hexes = _to_hex(geom, resolution=resolution, return_geoms=return_geoms)
output.append(hexes)
hexagons = pandas.concat(output) # unindent
The text was updated successfully, but these errors were encountered:
jtmiclat
changed the title
H3fy creaties a pandas dataframe for each polygon in source_unary
H3fy creates a pandas dataframe for each polygon in source_unary
Jul 5, 2022
jtmiclat
changed the title
H3fy creates a pandas dataframe for each polygon in source_unary
H3fy concats pandas dataframes for each polygon in source_unary
Jul 5, 2022
Hi was looking h3fy implementation and I found the following lines
tobler/tobler/util/util.py
Lines 97 to 102 in 66f3825
It runs
pd.concat
for each polygon in source_unary. It should probably runpd.concat
only once and outside the for loop likeThe text was updated successfully, but these errors were encountered: