geography

Geopandas – plot chart with continent data

Geopandas – plot chart with continent data Question: I am trying to plot the data on the continents with Geopandas. I have the following number of tickets from my pivot table on the number of tickets logged from each country: Number of Tickets region Africa 370 Americas 1130 Asia 873 Europe 671 Oceania 445 In …

Total answers: 2

Getting distance between two points based on latitude/longitude

Getting distance between two points based on latitude/longitude Question: I tried implementing the formula in Finding distances based on Latitude and Longitude. The applet does good for the two points I am testing: Yet my code is not working. from math import sin, cos, sqrt, atan2 R = 6373.0 lat1 = 52.2296756 lon1 = 21.0122287 …

Total answers: 12

Python: speeding up geographic comparison

Python: speeding up geographic comparison Question: I’ve written some code that includes a nested loop where the inner loop is executed about 1.5 million times. I have a function in this loop that I’m trying to optimize. I’ve done some work, and got some results, but I need a little input to check if what …

Total answers: 6