Closed apriljunge closed 4 months ago
I think it would make sense not to transform POIs from DataFrame to Dict, from Dict to NamedTuple and from NamedTuple to Dict and from Dict to DataFrame.
I have not reviewed the whole code, but maybe it would be possible to directly use and modify the DataFrame?
It would be really nice if all columns ~(or all columns that are not
:measure
and:position
)~[^1] defined in a POI dataframe would be passed to the output DataFrame.If a DataFrame like this
would keep
:blockid
and:label
in the output oftrainrun()
this would be really nice and much more flexible. With this behaviour more information for later calculation or display could be added.[^1]: I think the original position could be very important in the calculated DataFrame. :position and :measure should be kept too