You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the input zone data files have a name for the first column. Behaviour is the same for result data. Having a name for the first column would make reading and referencing the data easier in R. What the name really is is insignificant. It can be just "group" or "class", or "x" instead of real names like "zone", "municipality", or "mode".
Examples of current behaviour:
Example of missing first column name in zone data here:
The desired behavior seems to be achieved with index_col=0 parameter in pandas.read_csv() and index_label parameter in DataFrame.to_csv(). The format could easily be changed for output files, but we should then always feed a describing name for the index. Input files are a bit trickier, because it seems we will then drop support for the current format.
@johpiip I just realized that if the user has for some reason added an index label as column name in an input file, the resulting error can be really frustrating to find, at least if the intended zone numbers are very near the integer series 1, 2, 3...
None of the input zone data files have a name for the first column. Behaviour is the same for result data. Having a name for the first column would make reading and referencing the data easier in R. What the name really is is insignificant. It can be just "group" or "class", or "x" instead of real names like "zone", "municipality", or "mode".
Examples of current behaviour:
Example of missing first column name in zone data here:
helmet-model-system/Scripts/tests/test_data/Base_input_data/2016_zonedata/2016.wrk
Lines 9 to 11 in 12e6c98
Example of missing first column in
transit_kms.txt
:Improved behaviour:
2016.wrk
:transit_kms.txt
:The text was updated successfully, but these errors were encountered: