I have a database with, consumption and coordinates:

Consumo :

enter image description here

In this sense, I need to write a code that allowed me to find, from place to place, consumptions lower than the average consumption within a radius of 100m.

code like:

if row ['Consumption'] <x:
P = "Consumption lower than remaining in the Zone"
R.append (P)
print (R)

where x, is an average consumption within the radius of 100m, from place to place...

I've been searching in: * coordinates, geopy and geopy.distance *, but I do not know how to run the code.

0 Answers