Skip to content

Commit

Permalink
drop zones index for ValueError: cannot insert level_0, already exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqi-tori committed Dec 23, 2024
1 parent 6018d7f commit 9b373d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion city_metrix/layers/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class LayerGroupBy:
def __init__(self, aggregate, zones, layer=None, masks=[]):
self.aggregate = aggregate
self.masks = masks
self.zones = zones.reset_index()
self.zones = zones.reset_index(drop=True)
self.layer = layer

def mean(self):
Expand Down

0 comments on commit 9b373d2

Please sign in to comment.