Related to this question:
I have the following code with custom functions:
import numpy as np ranks = np.array([[8, 5, 3, 7, 6, 2, 1, 4], [8, 5, 3,