0

Is it possible to perform a hotspot analysis (like the one you can do in ArcGIS - Getis-Ord Gi*) with Geopandas, or with any other Python library?

closed as too broad by PolyGeo Jun 11 at 20:34

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I use QGIS frequently and have no idea what a hotspot analysis is. You might get better responses if you included at least a definition, or better yet a visual. Many of us know the ins- and outs- of geopandas and might be able to describe a workflow for "hotspot analysis" but not if we have to do research to understand the question. – Jon Jun 11 at 19:56
  • Hi Jon, a hotspot analysis is defined as the following in ArcGIS' documentation: "Given a set of weighted features, identifies statistically significant hot spots and cold spots using the Getis-Ord Gi* statistic." More information can be found here. – Juan Francisco Saldarriaga Jun 12 at 14:12
  • It looks like a simple z-score type statistic...that would be easy enough to implement yourself. Unless I'm missing something. – Jon Jun 12 at 14:48
2

Check out PySAL: The Python Spatial Analysis Library

https://pysal.readthedocs.io/en/latest/

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • Thanks. Yes, I've seen it. And I see in the docs they have a Getis-Ord Statistic. However, I don't think that will generate the same kind of output as the Hotspot analysis in ArcGIS. I might be mistaken but I think the Getis-Ord in PySal generates a spatial autocorrelation statistic. Is that right? – Juan Francisco Saldarriaga Jun 11 at 20:20
  • @JuanFranciscoSaldarriaga, yes the global Getis-Ord generates a statistic. You want the local G (or G*) - pysal.readthedocs.io/en/latest/generated/… – user2856 Jun 12 at 0:54
  • Great. Thank you. I'll give it a try and report back. – Juan Francisco Saldarriaga Jun 12 at 14:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.