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.
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.