geoplotlib icon indicating copy to clipboard operation
geoplotlib copied to clipboard

Nature of the Data

Open olivier2106 opened this issue 6 years ago • 1 comments

Hi Andrea, i am using google localisation data as input. -cf below- geoplotlib and pygmet correct versions have been imported. yet the nature of my data does not seem correct. -KeyError: 'lon', cf below- Can you help?

tz=getattr(series.dtype, 'tz', None))

File "pandas_libs\index.pyx", line 98, in pandas._libs.index.IndexEngine.get_value File "pandas_libs\index.pyx", line 106, in pandas._libs.index.IndexEngine.get_value File "pandas_libs\index.pyx", line 156, in pandas._libs.index.IndexEngine.get_loc KeyError: 'lon'

df_course_real['Pickup location lat/long'].head() Out[22]: 1 48.876389, 2.3584339000000236 2 48.86339, 2.313086 4 48.8410203, 2.3203779 10 48.863203, 2.315618 11 48.862982, 2.312684 Name: Pickup location lat/long, dtype: object

olivier2106 avatar Oct 16 '18 07:10 olivier2106

@olivier2106

Hi,

This may or may not pertain to the issue you are experiencing, but from my own recent issue, I've learned that we may organize or utilize coordinates that follow common vernacular when referring to location, that being latitude followed by longitude. GeoPlotLib seems to adhere to the format established by and on http://geojson.org/, that being longitude and then latitude.

JimLakis avatar Apr 09 '19 20:04 JimLakis