trackintel icon indicating copy to clipboard operation
trackintel copied to clipboard

ENH: replace returning a DataFrame with returning a Series

Open bifbof opened this issue 1 year ago • 0 comments

Functions like get_speed_positionfixes, get_speed_triplegs, create_activity_flag, predict_transport_mode take a DataFrame, copy it, potentially override a column with the result and then return the new DataFrame. I think it would be cleaner if those functions would return a Series directly without the need to copy the whole DataFrame.

bifbof avatar Sep 26 '23 14:09 bifbof