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

skmob.preprocessing.detection.stay_locations fail with column names LONGITUDE, LATITUDE, KeyError: "['lat', 'lng'] not in index" #278

Open
apiszcz opened this issue Jan 7, 2024 · 0 comments

Comments

@apiszcz
Copy link

apiszcz commented Jan 7, 2024

What is the correct approach for calling stay_locations?

 
tdf

      UID                       datetime                                       wkt                         DATETIME  LONGITUDE   LATITUDE
0     156  2014-02-01 00:00:00.739166+01  POINT(41.8836718276551 12.4877775603346) 2014-02-01 00:00:00.739166+00:00  41.883672  12.487778
1     187  2014-02-01 00:00:01.148457+01  POINT(41.9285433333333 12.4690366666667) 2014-02-01 00:00:01.148457+00:00  41.928543  12.469037
type(tdf)
<class 'skmob.core.trajectorydataframe.TrajDataFrame'>

from skmob.preprocessing import detection
 staytdf = detection.stay_locations(tdf)
KeyError: "['lat', 'lng'] not in index"
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

1 participant