PatBall1 / detectree2

Python package for automatic tree crown delineation based on the Detectron2 implementation of Mask R-CNN
https://patball1.github.io/detectree2/
MIT License
148 stars 35 forks source link

Fix 'GeoDataFrame object has no attribute append' error #103

Closed mpcabete closed 1 year ago

mpcabete commented 1 year ago

As of pandas 2.0, append (previously deprecated) was removed. I fixed the issue by implementing the recommended way for appending to a GeoDataFrame described in the following issue: QST: Recommended way for appending to a GeoDataFrame? (df.append is depreciated in pandas)

PatBall1 commented 1 year ago

@mpcabete thanks for pointing this out. I have been working on this (among other things) in the jb/outputcrs branch. I have spotted a few other places where the pandas depreciated .append() method crops up so I will stick with the jb/outputscrs branch for this issue. Thanks for the contribution!