translation#

Tools to convert numpy/pandas vectors/matrices between different index systems.

In transport, these tools are very useful for translating data between different zoning systems.

Functions#

TypedDict(typename[, fields, total])

A simple typed namespace.

matrix_translation_from_file(matrix_path, ...)

Translate zoning system of matrix CSV file.

numpy_matrix_zone_translation(matrix, ...[, ...])

Efficiently translates a matrix between index systems.

numpy_vector_zone_translation(vector, ...[, ...])

Efficiently translates a vector between index systems.

pandas_long_matrix_zone_translation(matrix, ...)

Efficiently translates a pandas matrix between index systems.

pandas_matrix_zone_translation(matrix, ...)

Efficiently translates a pandas matrix between index systems.

pandas_multi_vector_zone_translation(vector, ...)

Efficiently translate a multi-column pandas vector between index systems.

pandas_single_vector_zone_translation(...[, ...])

Efficiently translate a single-column pandas vector between index systems.

pandas_vector_zone_translation(vector, ...)

Efficiently translate a pandas vector between index systems.

vector_translation_from_file(vector_path, ...)

Translate zoning system of vector CSV file.