You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the function read_staypoints_csv to load staypoints of the Foursquare dataset, after I had saved these staypoints before using write_staypoints_csv. The problem with Foursquare is that there is no information about finished_at. When loading the data, the function tries to transform the dataframe into a tz aware dataframe (see here), but it does not work because the values are NaN. This does not cause an error; but the error appears later when running sp.as_staypoints:
AssertionError: dtype of finished_at is datetime64[ns] but has to be tz aware datetime64
I'm not sure how to fix it in Trackintel, but it's not urgent because I use a workaround locally.
The text was updated successfully, but these errors were encountered:
I used the function
read_staypoints_csv
to load staypoints of the Foursquare dataset, after I had saved these staypoints before usingwrite_staypoints_csv
. The problem with Foursquare is that there is no information aboutfinished_at
. When loading the data, the function tries to transform the dataframe into a tz aware dataframe (see here), but it does not work because the values are NaN. This does not cause an error; but the error appears later when runningsp.as_staypoints
:AssertionError: dtype of finished_at is datetime64[ns] but has to be tz aware datetime64
I'm not sure how to fix it in Trackintel, but it's not urgent because I use a workaround locally.
The text was updated successfully, but these errors were encountered: