Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nature of the Data #40

Open
olivier2106 opened this issue Oct 16, 2018 · 1 comment
Open

Nature of the Data #40

olivier2106 opened this issue Oct 16, 2018 · 1 comment

Comments

@olivier2106
Copy link

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

@JimLakis
Copy link

JimLakis commented Apr 9, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants