I am using the following code to load a numpy array, find unique dates in the first column, and then extract a slice from the numpy array based on the date. It is very slow. Is