caf.toolkit.pandas_utils.matrices#

Contains functions that perform checks and provide high level statistics.

Functions

add_matrix_sums(df)

Add a sum column and row to a dataframe containing a matrix in square format.

compare_matrices(matrix_report_a, ...[, ...])

Compare two matrix reports.

compare_matrices_and_output(excel_writer, ...)

Compare two matrix reports.

mark_internal_external(matrix, internal_zones)

Mark internal and external trips in a matrix.

matrix_describe(matrix[, almost_zero])

Create a high level summary of a matrix.

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

MatrixReport(matrix, translation_vector)

Creates a high level summary of a matrix and its trip ends.