14
$\begingroup$

Mode Analytics has a nice heatmap feature, but it is not conducive to comparing maps (only one per report).

enter image description here

What they do allow is data to be pulled easily into a wrapped python notebook. And then any image in python can easily be added to a report.

So my question is: how do I recreate a heatmap on an actual map in Python? I've checked out follium and plotly, but neither seem to have similar functionality.

$\endgroup$
3
  • 1
    $\begingroup$ Folium has a plugin for heat maps. Here is an example. $\endgroup$
    – Emre
    Oct 27, 2016 at 5:41
  • $\begingroup$ Thanks @Emre that's exactly what I needed. Sadly Mode doesn't support folium yet, but I'll bug their customer service and see if they'll load it. $\endgroup$
    – ScottieB
    Oct 27, 2016 at 16:32
  • $\begingroup$ Another good library for this is gmplot which also let's you export the map as a standalone html file. Here is a tutorial on using it. $\endgroup$ Apr 27, 2018 at 18:25

1 Answer 1

11
$\begingroup$

Looks like the gmaps package is what you're looking for.

You can do things like this with it:

gmap

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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