In the changed code, we had a mypy error because numpy ndarrays are not compatible with random.Random.shuffle() (expected argument type is MutableSequence[Any])
We fix this by first instantiating priority_order as a list, then shuffling it, then creating an ndarray from it afterwards.
Issue: https://github.com/capitalone/DataProfiler/issues/722
In the changed code, we had a mypy error because numpy
ndarray
s are not compatible withrandom.Random.shuffle()
(expected argument type isMutableSequence[Any]
)We fix this by first instantiating
priority_order
as a list, then shuffling it, then creating an ndarray from it afterwards.