trackintel icon indicating copy to clipboard operation
trackintel copied to clipboard

Generate tours do not generate valid trackintel tours

Open henrymartin1 opened this issue 2 years ago • 0 comments

The tours.as_tours check fails after generating tours using the generate_tours function. This can be easily reproduced by adding tours.as_tours at the end of any test case of the tour generation. It seems that the reason is that the data types for the date columns are not set properly, so maybe it can be sloved by simply adding tours['started_at'] = pd.to_datetime(tours['started_at']) at the end of the tour generation.

henrymartin1 avatar May 25 '22 11:05 henrymartin1