'How to generate a map with clusters in Python
I have this dataframe below and I would like to know how I can make a graph similar to the one I inserted in the attachment. Can you help with some material or some code that helps? See that I have the properties and also the corresponding cluster of each property, but I don't know how to generate a map like the one I inserted.
Code
import pandas as pd
df = pd.DataFrame({'Properties':[1,2,3,4,5,6],
'Latitude':[-24.930473, -24.95575,-24.924161,-24.95579, -24.94557, -24.93267],
'Longitude':[-49.994889, -49.990162,-50.004343, -50.007371, -50.01542, -50.00702],
'cluster': (1,2,1,2,1,2)})
display(df)
Properties Latitude Longitude cluster
0 1 -24.930473 -49.994889 1
1 2 -24.955750 -49.990162 2
2 3 -24.924161 -50.004343 1
3 4 -24.955790 -50.007371 2
4 5 -24.945570 -50.015420 1
5 6 -24.932670 -50.007020 2
Example
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

