mie-lab / trackintel

trackintel is a framework for spatio-temporal analysis of movement trajectory and mobility data.
MIT License
199 stars 50 forks source link

ENH: replace returning a DataFrame with returning a Series #547

Open bifbof opened 11 months ago

bifbof commented 11 months ago

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.