Transport-for-the-North / caf.toolkit

Toolkit of transport planning and appraisal functionalities.
https://caftoolkit.readthedocs.io/en/stable/
Other
0 stars 2 forks source link

Add method to mask matrices to certain zones #120

Closed BenTaylor-TfN closed 3 months ago

BenTaylor-TfN commented 6 months ago

Add a method into the Pandas and Numpy utils that allows the cutting down of a matrix into a subset of it's data.

This is needed in the data requests work here: https://github.com/Transport-for-the-North/data_requests/issues/22

See the following code in NorMITs Demand for examples of how to do this: