Closed asongtoruin closed 2 months ago
@isaac-tfn thanks for merging in your changes too! Spotted a snag that I've (hopefully!) just fixed now as well.
The pandas_2 branch was merged with main and deleted this morning so this PR was automatically closed.
@asongtoruin - Please can you switch this PR to be merged with the main branch and reopen it.
Hi! As part of our work on Land-Use we've made a couple of quick changes to the code to get it working nicely for us, namely:
TODO
comment - hopefully this fits with your workflow!DVector
checks useequal_levels
- this only applies when theDataFrame
has aMultiIndex
- i.e. multiple levels of segmentation. In our case, we may sometimes only have a single level of segmentation, so the code was crashing. This fix is a fairly simple one that just chooses the method based on the index typeNot sure how well this will integrate with your existing tests, apologies, but hopefully this gives you a good starting point for accommodating these changes!