Transport-for-the-North / caf.toolkit

https://caftoolkit.readthedocs.io/en/stable/
Other
0 stars 1 forks source link

Add helpers to filter wide Pandas matrices by index / columns #121

Closed BenTaylor-TfN closed 1 month ago

BenTaylor-TfN commented 4 months ago

Describe Changes

Add function(s) to split a wide pandas matrix by specific IDs easily - dealing with edge cases. Particularly useful for splitting wide zonal matrices down to specific II, IE, EI, and EE areas.

Needed for data requests tool when cutting down matrices of data to a specific area.

fixes #120

Task Checklist